options: czas: 15*1 #5 minut on respawn: teleport player to {Spawn.hospital} send "&6* &ePrawie umarłeś! Znajdujesz się teraz w szpitalu," send " &etwój pobyt potrwa 5 minut" set {hospital::%player%} to {@czas} stop command /sethospital: permission: ck-hospital.sk permission message: "You Don't have Permission!" trigger: set {Spawn.hospital} to location of player send "&6* &eSzpital został ustawiony na coordach:" send " &bX: %rounded x-location of player%, &bY: %rounded y-location of player%, &bZ: %rounded z-location of player%" stop command /exithospital: permission: ck-hospital.sk permission message: "&cYou Don't have Permission!" trigger: set {exit.hospital} to location of player send "&6* &eWyjście ze szpitala zostało ustawione na coordach:" send " &bX: %rounded x-location of player%, &bY: %rounded y-location of player%, &bZ: %rounded z-location of player%" stop every 1 seconds: loop all players: if {hospital::%loop-player%} > 70: remove 1 from {hospital::%loop-player%} set title of (loop-player)'s scoreboard to "&6» &b&kx &e&lSzpital &b&kx &6«" set line 9 of (loop-player)'s scoreboard to "" set line 8 of (loop-player)'s scoreboard to "&6* &ePrawie umarłeś!" set line 7 of (loop-player)'s scoreboard to "" set line 6 of (loop-player)'s scoreboard to "&6* &eZnajdujesz się" set line 5 of (loop-player)'s scoreboard to " &eteraz w szpitalu." set line 4 of (loop-player)'s scoreboard to "" set line 3 of (loop-player)'s scoreboard to "&6* &eDo wyjścia pozostało:" set line 2 of (loop-player)'s scoreboard to " &b%{hospital::%loop-player%}% &esekund" set line 1 of (loop-player)'s scoreboard to "" if {hospital::%loop-player%} <= 0: send "&6* &eMożesz już opuścić szpital!" to loop-player delete {hospital::%loop-player%} clear (loop-player)'s scoreboard if bed of loop-player exists: teleport loop-player to (loop-player)'s bed else: teleport loop-player to {exit.hospital}