Bestpolice
Zombi Geldi, Beni Yedi
Selam, klasik bir antifly sistemi.
Kod:
options:
prefix: &c&lHile<yellow>Uyarısı
prefix2: &cHile&aKontrol&f
command antifly [<text>]:
trigger:
if player has permission "flycontrol.admin":
if arg-1 is "ac":
set {antiflysecurity} to true
send "{@prefix2}: Anti-Fly &aaktif." to player
else if arg-1 is "kapat":
set {antiflysecurity} to false
send "{@prefix2}: Anti-Fly &cde-aktif." to player
else:
send "&a/antifly <ac><kapat>"
on fly toggle:
if player doesn't have permission "player.fly":
if {antiflysecurity} is true:
loop all players:
if loop-player has permission "player.flymesg":
send "{@prefix}: %player%, oyuncusu yetkisi olmadığı halde uçuş sergiledi." to loop-player
set player's flight mode to false
send "{@prefix}: Anti-fly devrede!" to player