serdarKing34
Zombi Katili
- Mesajlar
- 193
- En iyi cevaplar
- 0
- Beğeniler
- 4
- Puanları
- 120
Bot Koruması ! Skripti
Kod:
options:
p: &5&lServer İsmi&3&l>
Atilma-Mesaji: &6&lLutfen Tekrar Giris Yapin&7!&r &3[&bBot Korumasi&3]
perm-mesaj: &cBunun icin yetkiniz yok!
menu-isim: &eBot Korumasi
on first join:
kick player due to "{@p} {@Atilma-Mesaji}"
on join:
if {giriskorumasi} is true:
stop
else:
if {ilkgiris.%player%} is not set:
kick player due to "{@p} {@Atilma-Mesaji}"
set {ilkgiris.%player%} to true
stop
if {ilkgiris.%player%} is false:
kick player due to "{@p} {@Atilma-Mesaji}"
set {ilkgiris.%player%} to true
stop
on quit:
set {ilkgiris.%player%} to false
command /girisayarlari [<Text>]:
permission: giris.admin
permission message: {@p} {@perm-mesaj}
trigger:
if arg 1 is not set:
open chest with 1 rows named "{@menu-isim}" to player
if {giriskorumasi} is true:
format slot 4 of player with gray dye named "&cBot Korumasi Kapali!" with lore "&aTiklarsaniz bot korumasi acilir!||&3(&bOnerilir!&3)" to close then run [make player execute command "/girisayarlari ac"]
else:
format slot 4 of player with light green dye named "&aBot Korumasi Acik!" with lore "&cTiklarsaniz bot korumasi kapanir!" to close then run [make player execute command "/girisayarlari kapat"]
else:
if arg 1 is "kapat":
send "{@p} &cBot korumasi kapatildi!"
set {giriskorumasi} to true
stop
if arg 1 is "ac":
send "{@p} &aBot korumasi acildi!"
set {giriskorumasi} to false
stop