variables:
{portalcoin::%player%} = 0
options:
prefix: &aPortal
command portalbiletal:
trigger:
if {portalcoin::%player%} >= 10:
subtract 10 from {portalcoin::%player%}
send "{@prefix}: Bilet başarıyla aldındı." to player
give 1 paper named "&aPortal Bilet" to player
set {portalbiletalındıMı::%player%} to true
else:
send "{@prefix}: Yeterli bir bakiyeniz bulunmamaktadır. Bakiye: %{portalcoin::%player%}%" to player
on portal enter:
if {portalbiletalındıMı::%player%} is true:
remove 1 paper from player
send "{@prefix}: Portala giriş sağladınız, biletiniz alındı." to player
set {portalbiletalındıMı::%player%} to false
else:
stop
send "{@prefix}: Portal biletini kullandın veya bileti satın almadınız."