pro_44
Örümcek Hoşt!
- Katılım
- 27 Ağustos 2024
- Mesajlar
- 328
- Elmaslar
- 26
- Puan
- 1.370
- Yaş
- 27
- Konum
- türkiye
- Minecraft
- pro_44
- yok
- X
- yok
Discord:
yok
Kod:
options:
fly_duration_default: 0 # Varsayılan uçuş süresi
command /adafly ver <player> <number>:
permission: op
permission message: &cBu komutu kullanmak için OP yetkisine sahip olmanız gerekiyor.
trigger:
set {flytime::%arg-1%} to arg-2
send "&a%arg-1%'nin uçuş süresi &e%arg-2% &asaniye olarak ayarlandı." to player
execute console command "say &a%arg-1%'ye uçuş süresi verildi: %arg-2% saniye."
command /adafly:
trigger:
if {flytime::%player%} is set:
if {flytime::%player%} > 0:
send "&eAda Fly açıldı! Kalan uçuş süreniz: &e%{flytime::%player%}% &esaniye." to player
start flying for player
# Zamanlayıcı ile süreyi 1 saniyede bir azalt
wait 20 ticks
execute command "/adafly" # Sürekli güncellemeler için kendini tekrar çağırır
else:
send "&cAda Fly kapatıldı! Kalan uçuş süreniz: 0 saniye." to player
stop flying for player
remove {flytime::%player%}
else:
send "&cUçuş süreniz yok!" to player
on tick:
loop all players:
if {flytime::%loop-player%} is set:
if {flytime::%loop-player%} > 0:
# Uçuş süresi her saniye azalacak şekilde kontrol ediyoruz
set {flytime::%loop-player%} to {flytime::%loop-player%} - 1
# Eğer 15 saniye geçerse, oyuncuya mesaj gönder
if {flytime::%loop-player%} % 15 is 0:
send "&eUçuş süreniz: &e%{flytime::%loop-player%}% &esaniye." to loop-player
else:
stop flying for loop-player
remove {flytime::%loop-player%}
send "&cUçuş süreniz sona erdi!" to loop-player
Merhaba arkadaşlar bu skript neden çalışmıyor yardımcı olursanız sevinirim :)