SHOW:
|
|
- or go back to the newest paste.
| 1 | on first login: | |
| 2 | wait 1 tick | |
| 3 | teleport player to {spawn}
| |
| 4 | on respawn: | |
| 5 | wait 1 tick | |
| 6 | teleport player to {spawn}
| |
| 7 | on damage of player: | |
| 8 | if {spawn.teleport.%victim%} is true:
| |
| 9 | send "&6* &9Teleport na spawn anulowany" to victim | |
| 10 | set {spawn.teleport.%victim%} to false
| |
| 11 | ||
| 12 | command /setsppawn: | |
| 13 | trigger: | |
| 14 | - | if player has permission "napieprzamy.setspawn": |
| 14 | + | if player has permission "setspawn": |
| 15 | set {spawn} to location of player
| |
| 16 | send "&aUstawiono spawn" | |
| 17 | stop | |
| 18 | send "&4[Spawn] &cBrak uprawnien do ustawiania punktu spawnu" | |
| 19 | command /spawn: | |
| 20 | trigger: | |
| 21 | if player doesn't have permission "spawn": | |
| 22 | send "&cNie masz uprawnien" | |
| 23 | send "&cTeleportacja za &65 sekund. Prosze sie nie ruszac... " | |
| 24 | set {posx.%name of player%} to x-location of player
| |
| 25 | set {posy.%name of player%} to y-location of player
| |
| 26 | set {posz.%name of player%} to z-location of player
| |
| 27 | loop 5 times: | |
| 28 | if difference between x-location of player and {posx.%name of player%} is bigger than 0.5:
| |
| 29 | send "&aTeleportacja anulowana!" | |
| 30 | stop | |
| 31 | if difference between y-location of player and {posy.%name of player%} is bigger than 0.5:
| |
| 32 | send "&aTeleportacja anulowana!" | |
| 33 | stop | |
| 34 | if difference between z-location of player and {posz.%name of player%} is bigger than 0.5:
| |
| 35 | send "&aTeleportacja anulowana!" | |
| 36 | stop | |
| 37 | wait 1 second | |
| 38 | send "&cTeleportacja za %5-loop-number%" | |
| 39 | teleport player to {spawn}
| |
| 40 | send "&aTeleportacja..." |