on first join:
set {surelifly::%player%} to 0
set {sureliflydakka::%player%} to 0
set {sureliflysaniye::%player%} to 0
every 1 second:
loop all players:
if {sureliflysaniye::%loop-player%} is 0:
if {sureliflydakka::%loop-player%} is not 0:
remove 1 from {sureliflydakka::%loop-player%}
set {sureliflysaniye::%loop-player%} to 59
else:
wait 1 second
else:
remove 1 from {sureliflysaniye::%loop-player%}
every 1 second:
loop all players:
if {surelifly::%loop-player%} is 10:
send loop-player title "&bSüreli&3Fly" with subtitle "&7Son &e10 &7Saniye Kaldı!" for 2 second
else:
if {surelifly::%loop-player%} is 3:
send loop-player title "&bSüreli&3Fly" with subtitle "&7Son &e3 &7Saniye Kaldı!" for 0.8 second
else:
if {surelifly::%loop-player%} is 2:
send loop-player title "&bSüreli&3Fly" with subtitle "&7Son &e2 &7Saniye Kaldı!" for 0.8 second
else:
if {surelifly::%loop-player%} is 1:
send loop-player title "&bSüreli&3Fly" with subtitle "&7Son &e1 &7Saniye Kaldı!" for 0.8 second
on right click with paper:
loop all players:
if name of loop-player's tool is "&aFly&2Kağıdı":
send "&3SüreliFly &8> &bSüreliFly'a 5 dakka eklendi!"
add 300 to {surelifly::%loop-player%}
add 5 to {sureliflydakka::%loop-player%}
set {sureliflysaniye::%loop-player%} to 0
set loop-player's flight mode to true
remove 1 paper named "&aFly&2Kağıdı" from loop-player's inventory
every 1 second:
loop all players:
if {surelifly::%loop-player%} is 1:
set {surelifly::%loop-player%} to 0
send "&3SüreliFly &8> &bUçuş süresi dolmuştur!" to loop-player
send loop-player title "&bSüreli&3Fly" with subtitle "&cSüre Doldu!" for 3 second
set loop-player's flight mode to false
else:
if {surelifly::%loop-player%} is greater than 0:
remove 1 from {surelifly::%loop-player%}
set loop-player's flight mode to true
else:
set {surelifly::%loop-player%} to 0
command /sürelifly [<text>] [<player>]:
aliases: surelifly, sfly, sureliucus, süreliuçuş, surelıfly
trigger:
if arg 1 is set:
if arg 1 is "al" or "kagital" or "kağıtal" or "kagit" or "kağıt" or "flykagıt" or "flykağıt":
if player has permission "surelifly":
execute console command "give %player% paper 1 0 name:&aFly&2Kağıdı"
send "&3SüreliFly &8> &bUçuş kağıdı verildi!"
else:
send "&3SüreliFly &8> &cYetkiniz yok!"
else:
if arg 1 is "ver" or "kağıtver" or "kağıtve" or "kagitver" or "kver":
if player has permission "surelifly":
if arg 2 is set:
send "&3SüreliFly &8> &d%arg 2% &badlı oyuncuya uçuş kağıdı verildi!"
execute console command "give %arg 2% paper 1 0 name:&aFly&2Kağıdı"
else:
send "&3SüreliFly &8> &bLütfen bir isim giriniz! &d/sürelifly ver [isim]"
else:
send "&3SüreliFly &8> &cYetkiniz yok!"
else:
send "&3SüreliFly &8> &cBöyle bir komut yok!"
else:
send ""
send "&d&lSURELIFLY"
send "&b&n%player%"
send ""
send "&5SüreliFlySüre&8: &b%{sureliflydakka::%player%}% &8Dakika &b%{sureliflysaniye::%player%}% &8Saniye"
send ""