- En iyi cevaplar
- 0
Çok uğraşmak istemedim mantığı yazıyor.Oradan bakarsın istersen öğretici bir şekilde yazıyım ?
PHP:
command /çubuk [<text>] [<text>]:
trigger:
arg 1 is not set:
send "&c/çubuk kaydet <Yazı> &7- Yazıyı kaydeder." to player
send "&c/çubuk sil &7- Kayıtlı yazıyı siler." to player
stop
else if arg 1 is "kaydet":
if arg 2 is not set:
send "&cKullanım: /çubuk kaydet <Yazı>" to player
stop
if {cubuk.yazi} is not set:
set {cubuk.yazi} to arg 2
send "&aYazı kaydedildi." to player
stop
else if arg 1 is "sil":
if {cubuk.yazi} is not set:
send "&cHer hangi bir kayıtlı bir yazı bulunamadı!" to player
stop
else:
delete {cubuk.yazi}
send "&aYazı silindi!" to player
stop
command /göster:
trigger:
open chest with 1 rows named "&aDeneme" to player
wait 2 ticks
{cubuk.yazi} is set:
format slot 0 of player with stick named "%{cubuk.yazi}%" to close then run ""
else:
stop