Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simplexity-Development/SimplePlayerFreeze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

32 Commits

Repository files navigation

Simple Player Freeze

A simple plugin that allows freezing and unfreezing players.

Permissions:

  • spf.freeze:
    • Allows a user to freeze another
  • spf.freezeall
    • Allows base usage of the /freezeall command
  • spf.freezeall.server
    • Allows freezing the entire server
  • spf.freezeall.world
    • Allows freezing/unfreezing all players in a world
  • spf.unfreeze:
    • Allows a user to unfreeze someone who is frozen
  • spf.unfreezeall
    • Allows usage of the /unfreezeall command
  • spf.unfreezeall.server
    • Allows unfreezing all the players in a server
  • spf.unfreezeall.world
    • Allows unfreezing all the players in a world
  • spf.notify:
    • Notifies this user when a frozen player logs in
  • spf.bypass:
    • Prevents this user from being frozen
  • spf.reload:
    • Allows this user to reload the configuration
  • spf.chatspy
    • Allows this user to see the chat of frozen players, if chat behavior is set to 2

Commands:

  • /freeze
    • Freezes a player, or unfreezes them if they are frozen
  • /unfreeze
    • unfreezes a frozen player
  • /freezeall [world]
    • Freezes all players in a world or server, not supplying a world will freeze the whole server
  • /unfreezeall [world]
    • Unfreezes all players in a world or server, not supplying a world will unfreeze the whole server
  • /spfreload
    • Reloads the configuration
  • /fspy
    • Toggles visibility of the chat of frozen players, if chat behavior is set to 2

Default configuration

# Should freezing persist between relogs?
freeze-persist: true
# Should someone glow when they are frozen?
freeze-glow: true
# Should someone be force-dismounted when frozen?
freeze-dismount: true
# Should someone be force-set to fly when frozen? This will prevent them from having weird glitches with their client
# Constantly trying to force them down and the server constantly re-setting them, however I have not tested this extensively
# With people who know how to abuse glitches. As such it is false by default
freeze-flight: false
# Should the user be invulnerable while they're frozen? (prevents issues like drowning if frozen while underwater)
freeze-invulnerability: true
# Chat behavior
# 0 = Chat as normal, no change
# 1 = Full mute. They cannot send messages and get an error when they attempt to
# 2 = Shadow mute, they don't see a change in their chat, however only staff can see their messages
chat-behavior: 2
# Should console spy on attempted messages in chat behavior 2?
console-sees-muted-messages: true
# Should console receive the same notifications that those with the 'spf.notify' permission do?
console-notify: true
# Which things should be prevented when someone is frozen?
prevent-movement: true
prevent-walking: true
prevent-jumping: true
prevent-interact: true
prevent-xp-pickup: true
prevent-item-pickup: true
prevent-item-drop: true
prevent-item-use: true
prevent-hotbar-switch: true
prevent-commands: true
prevent-crafting: true
prevent-inventory-interaction: true
prevent-inventory-open: true #idk why blocking interact doesn't block this but here we are
prevent-attacking: true
# Configurations for the /freezeall command
freeze-new-logins: true # if the server or world is frozen, should people who log in while it's frozen, also be frozen?
freeze-world-change: true # if teleporting into a frozen world should the person be frozen
whitelisted-commands:
 # !! NOTE !! If you do not have the minecraft commands blocked by permissions, it is strongly advised
 # Not to remove these from the whitelist due to chat signatures - if these commands are cancelled,
 # The player will be kicked for a missing public key.
 - /minecraft:msg
 - /minecraft:w
 - /minecraft:t
 - /minecraft:teammsg
 - /minecraft:tm
 - /msg
 - /w
 - /t
 - /teammsg
 - /tm
 - /r
placeholder-api-format: "<dark_gray>[Frozen]</dark_gray>"

Locale

#-------------------- [Locale] --------------------
prefix: "<green><bold>[</bold><yellow>SPF</yellow><bold>]</bold></green> "
no-permission: "<red>You do not have permission to run this command!</red>"
no-player: "<red>You did not provide a valid player, please check your spelling and try again</red>"
world-not-found: "<red>The world <yellow><world></yellow> could not be found. Please check your spelling and try again</red>"
freeze-message: "<green><name></green> <aqua>has been frozen</aqua>"
freeze-server-message: "<aqua>The server has been frozen</aqua>"
freeze-world-message: "<aqua>The <green><world></green> world has been frozen<aqua>"
freeze-world-change: "<dark_gray><bold><name></bold></dark_gray> <gray>has switched to <world>. Since that world is frozen, they will now be frozen"
unfreeze-message: "<green><name></green> <yellow>has been unfrozen</yellow>"
unfreeze-world-message: "<yellow>The <green><world></green> world has been unfrozen</yellow>"
unfreeze-server-message: "<yellow>The server has been frozen</yellow>"
reload-message: "<gold>The Simple Player Freeze config has been reloaded</gold>"
have-been-frozen: "<red><bold>[NOTICE]</bold></red> <gray>You have been frozen. You cannot move, interact, or chat"
have-been-unfrozen: "<green><bold>[NOTICE]</bold></green> <gray>You have been unfrozen. You can move, interact, and chat again."
cannot-chat: "You are frozen and cannot chat"
cannot-use-command: "You are frozen and cannot use that command"
login-message: "<red><bold>[NOTICE]</bold></red> <gray>You were frozen during a previous session. You cannot move, interact, or chat"
login-notif: "<dark_gray><bold><name></bold></dark_gray> <gray>has logged in. They were frozen during a previous session."
login-notif-server-frozen: "<dark_gray><bold><name></bold></dark_gray> <gray>has logged in. Since the server is currently frozen, they will now be frozen"
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."
# <player> and <message> placeholders
shadow-mute-format: "<dark_gray>[Frozen]</dark_gray> <gray><player>: <message></gray>"
freeze-spy-enabled: "<green>Freeze Spy has been toggled <bold><yellow>On</yellow></bold>!</green>"
freeze-spy-disabled: "<grey>Freeze Spy has been toggled <bold><red>Off</red></bold>!</grey>"
cannot-be-frozen: "<red>That player cannot be frozen!</red>"
not-frozen: "<red>That player is not frozen!</red>"
only-player: "<red>Sorry! Only a player can run that command</red>"

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /