{_hat2.%player%} = false
{_pumperm.%player%} = true
command /Pumpkin:
trigger:
if {_hat2.%player%} is true:
send "&c&lHey! &r&7You Can't Execute That Command During Combat!"
stop
else:
teleport player to {pump}
play sound "block.note_block.pling" with volume 10 and pitch 2 to player
on command "/Pumpkin":
if {_pumperm.%player%} is set:
cancel event
send "&cYou don't have permission to execute that command!"
command /pumpkinperm:
permission: op
trigger:
clear {_pumperm.%player%}
command /pumpkinpermoff:
permission: op
trigger:
set {_pumperm.%player%} to true```
it doesnt allow me to teleport event tho {_pumperm.%player%}is cleared
#variables
1 messages · Page 1 of 1 (latest)
{_} ( temp variables) are not nested meaning they get deleted after the trigger has finished
so what should i do exactly?
still
you removed all underscores?
yes
Use delete not clear, im not sure if that changes anything but it is worth trying
same thing
send current code pls
wait, wth do you mean variables: (something with %player%)
I dont think %player% is defined there
also, you could put the permission check in the command
command /Pumpkin:
trigger:
{pumperm.%player%} is set
if {hat2.%player%} is true:
send "&c&lHey! &r&7You Can't Execute That Command During Combat!"
stop
else:
teleport player to {pump}
play sound "block.note_block.pling" with volume 10 and pitch 2 to player
also, where do you define {pump} ?
@earnest scaffold I'll be here for another hour prob if u reply fast enough
that just made it so anyone can tp