tepa mnie na spawn a nie do szpitala
variables:
{hospital::%player%} = false
on respawn:
if player doesn't have permission "hospital.bypass":
teleport player to {Spawn.hospital}
send "&aTrawiles do Szpitala! Musisz poczekac 5 minut!"
set {hospital::%player%} to true
wait 5 minutes
send "&eMozesz wyjsc ze szpitala!"
set {hospital::%player%} to false
teleport player to {exit.hospital}
stop
stop
command /sethospital:
permission: hospital.set
permission message: "You Don't have Permission!"
trigger:
set {Spawn.hospital} to location of player
send "&aUstawiles Szpital w twojej lokalizacji!"
stop
command /exithospital:
permission: Hospital.exit.set
permission message: "&cYou Don't have Permission!"
trigger:
set {exit.hospital} to location of player
send "&aUstawiles Wyjscie z szpitala!"
stop
on chat:
if {hospital::%player%} is true:
cancel event