variables: #Skript Değişken Listesi
{adafly::%player%} = false #Skript Değişkeni
options: #Sabit Değer Listesi
menu-ismi : &3AdaFly &7Menü #Menü Adı
ekran-ust-yazi: &3Adafly #Aktifleştirme Yazısı
ekran-altyazi-aktif: &aAktif #Aktifleştirme Alt Yazısı
ekran-altyazi-pasif: &cPasif #Pasifleştirme Alt Yazısı
menu-item-isim-pasif: &3AdaFly &cKapalı &c! #Menü Pasif Mod Eşya Adı
menu-item-isim-aktif: &3AdaFly &aAçık &c! #Menu Aktif Mod Eşya Adı
menu-item-lore-pasif: &aAçmak İçin Tıklayınız ! #Menu Pasif Mod Eşya Açıklaması
menu-item-lore-aktif: &cKapatmak İçin Tıklayınız ! #Menu Aktif Mod Eşya Açıklaması
on first join:
set {adafly::%player%} to false
stop
command /adafly:
trigger:
if {adafly::%player%} = true:
open virtual chest with size 1 named "{@menu-ismi}" to player
make gui slot 5 of player with stained glass pane:5 named "{@menu-item-isim-aktif}" with lore "{@menu-item-lore-aktif}" to run:
close player's inventory
send player title "{@ekran-ust-yazi}" with subtitle "{@ekran-altyazi-pasif}" for 30 ticks
set {adafly::%player%} to false
stop
else if {adafly::%player%} = false:
open virtual chest with size 1 named "{@menu-ismi}" to player
make gui slot 5 of player with stained glass pane:14 named "{@menu-item-isim-pasif}" with lore "{@menu-item-lore-pasif}" to run:
close player's inventory
send player title "{@ekran-ust-yazi}" with subtitle "{@ekran-altyazi-aktif}" for 30 ticks
set {adafly::%player%} to true
stop
on player world change:
if {adafly::%player%} = true:
if world is "ASkyBlock":
set player's flight mode to true
stop
else:
set player's flight mode to false
stop
else if {adafly::%player%} = false:
if world is "ASkyBlock":
set player's flight mode to false
stop
else:
set player's flight mode to false
stop