options:
nether-süre: 600 # Nether süresi (saniye)
end-süre: 600 # End süresi (saniye)
command /setspawn:
permission: op
trigger:
set {spawn-location} to location of player
send "&aSpawn noktası kaydedildi!" to player
command /setwarp nether:
permission: op
trigger:
set {nether-warp-location} to location of player
send "&6Nether warp noktası kaydedildi!" to player
command /setwarp end:
permission: op
trigger:
set {end-warp-location} to location of player
send "&5End warp noktası kaydedildi!" to player
command /warp nether:
trigger:
if {nether-warp-location} is not set:
send "&cNether warp noktası ayarlanmadı!" to player
stop
if player's world is "world_nether":
send "&cZaten Nether'desin!" to player
stop
if {spawn-location} is not set:
send "&cSpawn noktası ayarlanmadığı için giriş yapamazsın!" to player
stop
if player's balance >= 100: # Örnek ücret
remove 100 from player's balance
set {nether::%player%} to now + {@nether-süre} seconds
teleport player to {nether-warp-location}
send "&6Nether'e giriş yaptın! Süren: {@nether-süre} saniye" to player
else:
send "&cYeterli paran yok!" to player
command /warp end:
trigger:
if {end-warp-location} is not set:
send "&cEnd warp noktası ayarlanmadı!" to player
stop
if player's world is "world_the_end":
send "&cZaten End'desin!" to player
stop
if {spawn-location} is not set:
send "&cSpawn noktası ayarlanmadığı için giriş yapamazsın!" to player
stop
if player's balance >= 200: # Örnek ücret
remove 200 from player's balance
set {end::%player%} to now + {@end-süre} seconds
teleport player to {end-warp-location}
send "&5End'e giriş yaptın! Süren: {@end-süre} saniye" to player
else:
send "&cYeterli paran yok!" to player
every 5 seconds:
loop all players:
if loop-player's world is "world_nether" and {nether::%loop-player%} is set:
if {nether::%loop-player%} <= now:
teleport loop-player to {spawn-location}
send "&cNether süren bitti, spawna ışınlandın!" to loop-player
delete {nether::%loop-player%}
if loop-player's world is "world_the_end" and {end::%loop-player%} is set:
if {end::%loop-player%} <= now:
teleport loop-player to {spawn-location}
send "&cEnd süren bitti, spawna ışınlandın!" to loop-player
delete {end::%loop-player%}
on join:
if {nether::%player%} is set and {nether::%player%} <= now:
teleport player to {spawn-location}
send "&cNether süren bitmişti, spawna ışınlandın!" to player
delete {nether::%player%}
if {end::%player%} is set and {end::%player%} <= now:
teleport player to {spawn-location}
send "&cEnd süren bitmişti, spawna ışınlandın!" to player
delete {end::%player%}