on join:
add 1 to {onlinesayisi}
on quit:
remove 1 from {onlinesayisi}
delete {portalsontp::%player%}
command /pvpmaden [<text>]:
trigger:
if player is op:
if arg-1 is "portal":
set {pvpmaden.portal} to location of player
send "&8>>&7 pvpmaden portali tanimlandi."
if arg-1 is "maden":
set {pvpmaden.maden} to location of player
send "&8>>&7 pvpmaden ışınlanma noktası tanimlandi."
if arg-1 is not set:
send "/pvpmaden <portal/maden>"
on portal:
if difference between {portalsontp::%player%} and now is less than 5 ticks:
stop
set {portalsontp::%player%} to now
if {onlinesayisi} is greater than or equal to 10:
if distance between location of player and {pvpmaden.portal} is less than 10:
teleport player to {pvpmaden.maden}
send "&8>> &7Pvpmaden alanına ışınlanıyorsun."
else:
send "&3hata: &fonline sayısı 10 dan düşük olduğu için ışınlanamadın."