Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command /freeze <player>:
- Permission: freeze.freeze
- Permission message: No permission.
- Trigger:
- if player-arg is online:
- if {frozen::%arg 1%} is true:
- send "&5%arg 1%&7 is already frozen. Type &e/unfreeze &7to unfreeze them."
- else:
- set {frozen::%arg 1%} to true
- send "&7You froze &5%arg 1%."
- else:
- send "&5%arg 1%&7 is not online."
- Command /unfreeze <player>:
- Permission: freeze.unfreeze
- Permission message: No permission.
- Trigger:
- if player-arg is online:
- if {frozen::%arg 1%} is true:
- set {frozen::%arg 1%} to false
- send "&7You unfroze &5%arg 1%."
- else:
- send "&5%arg 1%&7 is already unfrozen. Type &e/freeze &7to freeze them."
- else:
- send "&5%arg 1%&7 is not online."
- on any move:
- if {frozen::%player%} is true:
- cancel the event
- # I don't think messages are necessary because it's evident when the player is frozen,
- # but you can use this, it won't spam their chat.
- # Remove the #
- # set action of player to "&5You may not move! &7You are frozen!"
- #A title works too
- on flight toggle:
- if {frozen::%player%} is true:
- cancel the event
- on quit:
- delete {frozen::%player%}
Add Comment
Please, Sign In to add comment