SHOW:
|
|
- or go back to the newest paste.
| 1 | command /vanish: | |
| 2 | - | permission: o.w.s |
| 2 | + | permission: Admin |
| 3 | trigger: | |
| 4 | if {%player%.sv} is not set:
| |
| 5 | set {%player%.sv} to 1
| |
| 6 | if {%player%.sv} is equal to 1:
| |
| 7 | hide the player from all players | |
| 8 | set {%player%.sv} to 2
| |
| 9 | set {%player%.vanish} to player
| |
| 10 | message "vanish &con" | |
| 11 | broadcast "&4%player% &chas left the game." | |
| 12 | stop | |
| 13 | if {%player%.sv} is equal to 2:
| |
| 14 | reveal the player from all players | |
| 15 | set {%player%.sv} to 1
| |
| 16 | delete {%player%.vanish}
| |
| 17 | message "vanish &eoff" | |
| 18 | broadcast "&4%player% &chas joined the game." | |
| 19 | stop | |
| 20 | command /svb: | |
| 21 | - | permission: o.w.hs |
| 21 | + | permission: Admin |
| 22 | trigger: | |
| 23 | if {%player%.sv} is not set:
| |
| 24 | set {%player%.sv} to 1
| |
| 25 | if {%player%.sv} is equal to 1:
| |
| 26 | hide the player from all players | |
| 27 | set {%player%.sv} to 2
| |
| 28 | set {%player%.vanish} to player
| |
| 29 | message "vanish &con" | |
| 30 | stop | |
| 31 | if {%player%.sv} is equal to 2:
| |
| 32 | reveal the player from all players | |
| 33 | set {%player%.sv} to 1
| |
| 34 | delete {%player%.vanish}
| |
| 35 | message "vanish &eoff" | |
| 36 | stop | |
| 37 | on join: | |
| 38 | loop all players: | |
| 39 | if {%loop-player%.vanish} is set:
| |
| 40 | hide the loop-player from all players |