|
| 1 | +# Simple Player Freeze |
| 2 | + |
| 3 | +A simple plugin that allows freezing and unfreezing players. |
| 4 | + |
| 5 | +### Permissions: |
| 6 | +- spf.freeze: |
| 7 | + - Allows a user to freeze another |
| 8 | +- spf.unfreeze: |
| 9 | + - Allows a user to unfreeze someone who is frozen |
| 10 | +- spf.notify: |
| 11 | + - Notifies this user when a frozen player logs in |
| 12 | +- spf.bypass: |
| 13 | + - Prevents this user from being frozen |
| 14 | +- spf.reload: |
| 15 | + - Allows this user to reload the configuration |
| 16 | + |
| 17 | +### Commands: |
| 18 | +- /freeze <player> |
| 19 | + - Freezes a player, or unfreezes them if they are frozen |
| 20 | +- /unfreeze <player> |
| 21 | + - unfreezes a frozen player |
| 22 | +- /spfreload |
| 23 | + - Reloads the configuration |
| 24 | + |
| 25 | +### Default configuration |
| 26 | + |
| 27 | +```yml |
| 28 | +# Should freezing persist between restarts? |
| 29 | +freeze-persist: true |
| 30 | +# Should someone glow when they are frozen? |
| 31 | +freeze-glow: true |
| 32 | +# Should someone be force-dismounted when frozen? |
| 33 | +freeze-dismount: true |
| 34 | +# Should someone be force-set to fly when frozen? This will prevent them from having weird glitches with their client |
| 35 | +# Constantly trying to force them down and the server constantly re-setting them, however I have not tested this extensively |
| 36 | +# With people who know how to abuse glitches. As such it is false by default |
| 37 | +freeze-flight: false |
| 38 | +# Should the user be invulnerable while they're frozen? (prevents issues like drowning if frozen while underwater) |
| 39 | +freeze-invulnerability: true |
| 40 | +# Which things should be prevented when someone is frozen? |
| 41 | +prevent-movement: true |
| 42 | +prevent-interact: true |
| 43 | +prevent-chat: true |
| 44 | +prevent-xp-pickup: true |
| 45 | +prevent-item-pickup: true |
| 46 | +prevent-item-drop: true |
| 47 | +prevent-item-use: true |
| 48 | +prevent-hotbar-switch: true |
| 49 | +prevent-commands: true |
| 50 | +prevent-crafting: true |
| 51 | +whitelisted-commands: |
| 52 | + - /msg |
| 53 | + - /r |
| 54 | +#-------------------- [Locale] -------------------- |
| 55 | +prefix: "<green><bold>[</bold><yellow>SPF</yellow><bold>]</bold></green> " |
| 56 | +no-permission: "<red>You do not have permission to run this command!</red>" |
| 57 | +no-player: "<red>You did not provide a valid player, please check your spelling and try again</red>" |
| 58 | +freeze-message: "<green><name></green> <aqua>has been frozen</aqua>" |
| 59 | +unfreeze-message: "<green><name></green> <yellow>has been unfrozen</yellow>" |
| 60 | +reload-message: "<gold>The Simple Player Freeze config has been reloaded</gold>" |
| 61 | +have-been-frozen: "<red><bold>[NOTICE]</bold></red> <gray>You have been frozen. You cannot move, interact, or chat" |
| 62 | +have-been-unfrozen: "<green><bold>[NOTICE]</bold></green> <gray>You have been unfrozen. You can move, interact, and chat again." |
| 63 | +cannot-chat: "You are frozen and cannot chat" |
| 64 | +cannot-use-command: "You are frozen and cannot use that command" |
| 65 | +login-message: "<red><bold>[NOTICE]</bold></red> <gray>You were frozen during a previous session. You cannot move, interact, or chat" |
| 66 | +login-notif: "<dark_gray><bold><name></bold></dark_gray> <gray>has logged in. They were frozen during a previous session." |
| 67 | +login-notif-now-unfrozen: "<dark_gray><bold><name></bold></dark_gray> <gray>has logged in. They were frozen during a previous session. They will now be unfrozen." |
| 68 | +cannot-be-frozen: "<red>That player cannot be frozen!</red>" |
| 69 | +not-frozen: "<red>That player is not frozen!</red>" |
| 70 | +``` |
0 commit comments