In this update I have completely re-coded Simple Freeze. There wont seem like much change, but now the code is completely reorganized and is a lot smoother. A lot of the config values have been changed and after updating you should delete it or some functions wont work.
Change your config or add:
Code (Text):
ADD:
frozen-notify-message:
- '{PREFIX}{PLAYER} was frozen by {FREEZER}'
unfrozen-notify-message:
- '{PREFIX}{PLAYER} was unfrozen by {FREEZER}'
sf-exempt-message:
- '{PREFIX}You cannot freeze &l{PLAYER} &9because they are exempt'
no-permission-message:
- '&cYou don''t have permission for this command'
Removed the "You were teleported to... " message and added a {LOCATION} placeholder
Instead of having only one permission sf.notify, it is now split into two permissions, sf.notify.frozen and sf.notify.unfrozen
When players log out particles are removed until they join back
Changed how messages are sent, now messages that aren't defined in the config expect prefix to contain a space at the end instead of adding one in and possibly making two spaces
Added config option to set the world that a custom location is in (If not given it will get the players current world)
Added config option to set the message sent to a player when they don't have permission to run a command (no-permission-message)
Added config option to set the message sent to a player when they fail to freeze a player because they are exempt (sf-exempt-message)
Added config option for the visibility radius of the particles above a frozen players head (radius)
Added config option for the message sent to players with sf.notify.unfrozen when a player is unfrozen (unfrozen-notify-message)
Added config option for volume and pitch of the freeze and unfreeze sounds (volume & pitch)
Added config option for what {LOCATION} will represent when there is no given location (location)
Bug Fixes
Players that froze a player that had sf.notify would be sent a message telling them the player had been frozen twice
You could freeze/unfreeze during freezeall
Sounds were played to all players on the server during freezeall even those with sf.exempt