I dont understand why it doesnt work on line 14 and 13 (else if player's location is {spawnlocation})
permission: admin.permission
permission message: &cYou cannot use this command!
trigger:
set {spawnlocation} to player's position
send "&aThe spawn has been set!" to player
command /spawn:
trigger:
if {spawnlocation} is set:
teleport player to {spawnlocation}
send "&aYou have been teleported to spawn!" to player
else if player's location is {spawnlocation}:
send "&aYou are already at spawn!" to player
else:
send "&cThe spawn has not been set!" to player
command /removespawn:
permission: admin.permission
permission message: &cYou cannot use this command!
trigger:
if {spawnlocation} is set:
send "&cThe spawn has been removed." to player
delete {spawnlocation}
else:
send "&cThe spawn has already been removed."
