options:
prefix: &c&lSkyblock &8> &f
command /setvisitwarp:
trigger:
set {_isowner} to placeholder "askyblock_owner" from player
if {_isowner} is %player%:
set {iswarp::%player%} to player's location
send "{@prefix} warp ok"
else:
send "{@prefix} bunu sadece kendi adanda yapabilirsin"
command /visit [<offlineplayer>]:
trigger:
if arg-1 is set:
if {iswarp::%arg 1%} is set:
if {islocked::%arg-1%} is not set:
teleport player to {iswarp::%arg 1%}
send "{@prefix} aferin ışınlandın"
else:
send "{@prefix} bu oyuncunun adası kilitli"
else:
send "{@prefix} bu oyuncunun warpı yok"
else:
send "{@prefix} lütfen bir oyuncu gir"
command /lock:
trigger:
if {islocked::%player%} is set:
clear {islocked::%player%}
send "{@prefix} ada kilidin kaldırıldı"
else:
set {islocked::%player%} to true
send "{@prefix} ada kilitlendi"
command /iswarps [<text>]:
trigger:
if arg 1 isn't set:
set {heads} to 0
set {_slot} to -1
loop {iswarp::*}:
set {_playerasdasd} to loop-index parsed as offline player
wait 1 tick
add 1 to {heads}
wait 1 tick
if {heads} > 0:
open virtual chest inventory with size 5 named "is warps" to player
format gui slot 40 of player with book named "&9Close" with lore "&7Close the menu." to close
format gui slot 39 of player with arrow named "&ePrevious" with lore "&7Go to the previous page" to run player command "/iswarps previous"
if {heads} < 26:
add 1 to {_slot}
format gui slot {_slot} of player with skull of {_playerasdasd} named "&c&l%{_playerasdasd}%" to run player command "visit %{_playerasdasd}%"
set {list::%{_playerasdasd}%} to {_playerasdasd}
else:
format gui slot 41 of player with arrow named "&eNext" with lore "&7Go to the next page" to run player command "/iswarps next"
else:
send "{@prefix} There are no players online. So we can't open a menu for you." to player
else if arg 1 is "next":
set {heads} to 0
set {_slot} to -1
loop {iswarp::*}:
set {_playerasdasd} to loop-index parsed as offline player
if {list::%{_playerasdasd}%} isn't set:
add 1 to {heads}
if {heads} > 0:
unformat all gui slots of player
wait 1 tick
format gui slot 40 of player with book named "&9Close" with lore "&7Close the menu." to close
format slot 39 of player with arrow named "&ePrevious" to run [make player execute command "/iswarps previous"]
if {heads} < 26:
add 1 to {_slot}
format gui slot {_slot} of player with skull of {_playerasdasd} named "&c&l%{_playerasdasd}%" to run player command "visit %{_playerasdasd}%"
set {list::%{_playerasdasd}%} to {_playerasdasd}
else:
format gui slot 41 of player with arrow named "&eNext" with lore "&7Go to the next page" to run player command "/iswarps next"
else:
send "{@prefix} There are no players online. So we can't open a menu for you." to player
else if arg 1 is "previous":
make player execute command "/iswarps"
stop