StaffMode 是一款 Minecraft 插件,允许服务器管理员切换至员工模式(staff mode),从而自由漫游并更好地旁观玩家。它提供自定义权限和命令限制,便于管理在员工模式下允许使用的命令,并帮助高效地维持服务器控制。
功能
- 切换员工模式:轻松进入或退出员工模式,以监控和管理玩家活动。
- 游戏模式切换:进入员工模式时自动将玩家的游戏模式切换为旁观者模式,退出时恢复之前的游戏模式。
- 固定位置:退出员工模式时,玩家将返回到原始位置。
- 命令限制:轻松管理员工模式下允许的权限或命令。
- 可自定义消息:通过配置文件个性化各种操作的消息,为您的服务器提供定制化的体验。
- Tab 列表集成:进入员工模式时自动从 Tab 列表中隐藏员工的名字,增强其匿名性。
命令
- /staffmode:切换员工模式
- /staffmode reload:重新加载插件配置,更新
config.yml 文件中所做的任何更改。
- /staffmode permission add <permission>:将指定的权限添加到员工模式下允许的权限列表中。处于员工模式的玩家可以使用拥有此权限的命令。
- /staffmode permission remove <permission>:从员工模式下允许的权限列表中移除指定的权限。处于员工模式的玩家将不再能够使用拥有此权限的命令。
- /staffmode help:显示帮助消息,列出玩家有权限使用的所有可用员工模式命令。
权限
- staffmode.admin:授予使用所有员工模式命令的权限。
- staffmode.use:允许玩家切换员工模式。
- staffmode.containers.open:允许玩家在员工模式下打开容器(例如箱子、熔炉等),但为了防止滥用,不允许他们修改容器内容。
- staffmode.containers.modify:允许玩家在员工模式下修改容器。
- staffmode.reload:授予重新加载插件配置文件的权限。
- staffmode.permission:用于在员工模式下添加或移除权限所需的权限。
- staffmode.permission.add:允许玩家将权限添加到员工模式允许的权限列表中。
- staffmode.permission.remove:允许玩家将权限从员工模式允许的权限列表中移除。
- staffmode.help:允许玩家查看列出可用员工模式命令的帮助消息。
常见问题
- 为什么他们可以使用不在允许权限列表中的权限或命令?
- 您的服务器上必须安装 LuckPerms 插件,权限才能正常工作。如果没有 LuckPerms,该插件无法根据允许的权限列表正确限制或授予对命令的访问权限。
支持
如果您需要帮助,可以通过 Discord 联系我(用户名:marcifyx)。
如果您在插件中遇到错误,请随时给我发消息。我会尽力尽快修复它们。
您可以通过评价插件来提出建议,我很乐意实施它。谢谢!
配置
# 员工模式允许的权限
# 本节列出了玩家在员工模式下被允许使用的权限。
# 例如,我们在这里列出了 essentials.tp,这允许玩家在员工模式下使用 /tp 命令。
# 您需要 LuckPerms 插件才能使用此功能。
allowed-permissions:
- essentials.tp
# 消息配置
# 本节包含显示给玩家的所有可自定义消息。
messages:
# 当玩家没有使用命令所需权限时显示的消息。
# %permission$ 是玩家缺失的权限节点。
no-permission: "&7[&b&lStaffMode&7] &r您没有权限使用此命令。 &7&o(%permission%)"
# 当玩家尝试使用未知命令时显示的消息。
unknown-command: "&7[&b&lStaffMode&7] &r未知命令。"
# 当玩家成功启用员工模式时显示的消息。
staffmode-enabled: "&7[&b&lStaffMode&7] &r您已启用员工模式。"
# 当玩家成功禁用员工模式时显示的消息。
staffmode-disabled: "&7[&b&lStaffMode&7] &r您已禁用员工模式。"
# 当玩家错误使用命令时显示的消息。
invalid-usage: "&7[&b&lStaffMode&7] &r命令用法无效。"
# 当玩家错误使用员工模式权限命令时显示的消息。
staffmode-permission-usage: "&7[&b&lStaffMode&7] &r用法:/staffmode permission <add/remove> <permission>"
# 当玩家错误使用添加权限命令时显示的消息。
add-permission-usage: "&7[&b&lStaffMode&7] &r用法:/staffmode permission add <permission>"
# 当玩家错误使用移除权限命令时显示的消息。
remove-permission-usage: "&7[&b&lStaffMode&7] &r用法:/staffmode permission remove <permission>"
# 当权限成功添加到允许权限列表时显示的消息。
# %permission% 是被添加的权限节点。
permission-added: "&7[&b&lStaffMode&7] &r权限 %permission% 已添加到允许列表。"
# 当权限成功从允许权限列表中移除时显示的消息。
# %permission% 是被移除的权限节点。
permission-removed: "&7[&b&lStaffMode&7] &r权限 %permission% 已从允许列表中移除。"
# 当玩家尝试添加已存在于允许权限列表中的权限时显示的消息。
# %permission% 是已存在的权限节点。
permission-exists: "&7[&b&lStaffMode&7] &r权限 %permission% 已存在于允许列表中。"
# 当玩家尝试移除允许权限列表中不存在的权限时显示的消息。
# %permission% 是不存在的权限节点。
permission-not-found: "&7[&b&lStaffMode&7] &r允许的列表中未找到权限 %permission%。"
# 当非玩家(例如控制台)尝试执行命令时显示的消息。
only-players: "&7[&b&lStaffMode&7] &r只有玩家才能使用此命令。"
# 插件配置文件 (config.yml) 成功重新加载时显示的消息。
reload-message: "&7[&b&lStaffMode&7] &r配置已重新加载。"
# 当玩家尝试在员工模式下使用不允许的命令时显示的消息。
command-not-allowed: "&7[&b&lStaffMode&7] &r您不被允许在员工模式下使用此命令。"
# 当玩家在员工模式下没有权限访问容器(箱子、熔炉等)时显示的消息。
# staffmode.containers.open
no-containers-access: "&7[&b&lStaffMode&7] &r您不被允许在员工模式下访问容器。"
# 当玩家在员工模式下没有权限修改容器(箱子、熔炉等)时显示的消息。
# staffmode.containers.modify
no-modify-access: "&7[&b&lStaffMode&7] &r您不被允许在员工模式下修改容器。"
# 帮助命令输出的标题。
help-header: "&e&lStaffMode 帮助"
# 帮助命令输出中每个命令描述的格式。
# %command% 是命令名称。
# %description% 是命令描述。
help-commands: "&e/%command% - %description%"
StaffMode is a Minecraft plugin that allows server administrators to toggle into staff mode, enabling them to roam around and better spectate players. It offers custom permissions and command restrictions, allowing easy management of which commands are allowed while in staff mode, and helps maintain server control efficiently.
Features
- Toggle Staff Mode: Enter and exit staff mode with ease to monitor and manage player activities.
- Gamemode Switching: Automatically switches the player's gamemode to Spectator when entering staff mode, and restores the previous gamemode upon exiting.
- Fixed Location: Returns the player to their original location upon exiting staff mode.
- Command Restrictions: Easily manage allowed permissions or commands while in staff mode.
- Customizable Messages: Personalize messages for various actions through the configuration file, providing a tailored experience for your server.
- Tab List Integration: Automatically hide the staff member's name from the tab list when they enter staff mode, enhancing their anonymity.
Commands
- /staffmode: Toggle staff mode
- /staffmode reload: Reloads the plugin configuration, updating any changes made in the
config.yml file.
- /staffmode permission add <permission>: Adds a specified permission to the list of allowed permissions in staff mode. Players in staff mode can use commands with this permission.
- /staffmode permission remove <permission>: Removes a specified permission from the list of allowed permissions in staff mode. Players in staff mode will no longer have access to commands with this permission.
- /staffmode help: Displays a help message listing all available staff mode commands that the player has permission to use.
Permissions
- staffmode.admin: Grants access to use all staff mode commands.
- staffmode.use: Allows the player to toggle staff mode.
- staffmode.containers.open: Allow players to open containers (e.g. chest, furnace, etc.) while in staff mode, but they are not allowed to modify the containers in order to prevent abuse.
- staffmode.containers.modify: Allow players to modify containers while in staff mode.
- staffmode.reload: Grants permission to reload the plugin's configuration file.
- staffmode.permission: Required permission for adding or removing permissions in staff mode.
- staffmode.permission.add: Allows the player to add a permission to the list of allowed permissions for staff mode.
- staffmode.permission.remove: Allows the player to remove a permission from the list of allowed permissions for staff mode.
- staffmode.help: Allows the player to view the help message listing available staff mode commands.
FAQ
- Why are they allowed to use permissions or commands that are not in the allowed permissions list?
- You must have the LuckPerms plugin installed on your server for permissions to function correctly. Without LuckPerms, the plugin cannot properly restrict or grant access to commands based on the allowed permissions list.
Support
You can contact me on discord marcifyx if you need assistance.
Feel free to message me if you encountered a bug within the plugin. I will do my best to fix them as soon as possible.
You can make a suggestion by rating the plugin, and I'll be glad to implement it. Thank you!
Config
# Allowed permissions for staff mode
# This section lists the permissions that players are allowed to use while they are in staff mode.
# For example, we have essentials.tp listed here, which allows players to use the /tp command while in staff mode.
# You need LuckPerms plugin to use this feature.
allowed-permissions:
- essentials.tp
# Messages configuration
# This section contains all the customizable messages that are displayed to players.
messages:
# Message shown when a player does not have the required permission to use a command.
# %permission$ is the permission node that the player is missing.
no-permission: "&7[&b&lStaffMode&7] &rYou don't have permission to use this command. &7&o(%permission%)"
# Message shown when a player attempts to use an unknown command.
unknown-command: "&7[&b&lStaffMode&7] &rUnknown command."
# Message shown when a player successfully enables staff mode.
staffmode-enabled: "&7[&b&lStaffMode&7] &rYou have enabled staff mode."
# Message shown when a player successfully disables staff mode.
staffmode-disabled: "&7[&b&lStaffMode&7] &rYou have disabled staff mode."
# Message shown when a player uses a command incorrectly.
invalid-usage: "&7[&b&lStaffMode&7] &rInvalid command usage."
# Message shown when a player uses the staff mode permission command incorrectly.
staffmode-permission-usage: "&7[&b&lStaffMode&7] &rUsage: /staffmode permission <add/remove> <permission>"
# Message shown when a player uses the command to add a permission incorrectly.
add-permission-usage: "&7[&b&lStaffMode&7] &rUsage: /staffmode permission add <permission>"
# Message shown when a player uses the command to remove a permission incorrectly.
remove-permission-usage: "&7[&b&lStaffMode&7] &rUsage: /staffmode permission remove <permission>"
# Message shown when a permission is successfully added to the allowed permissions list.
# %permission% is the permission node that was added.
permission-added: "&7[&b&lStaffMode&7] &rPermission %permission% has been added to allowed list."
# Message shown when a permission is successfully removed from the allowed permissions list.
# %permission% is the permission node that was removed.
permission-removed: "&7[&b&lStaffMode&7] &rPermission %permission% has been removed from allowed list."
# Message shown when a player attempts to add a permission that already exists in the allowed permissions list.
# %permission% is the permission node that already exists.
permission-exists: "&7[&b&lStaffMode&7] &rPermission %permission% already exists in the allowed list."
# Message shown when a player attempts to remove a permission that does not exist in the allowed permissions list.
# %permission% is the permission node that does not exist.
permission-not-found: "&7[&b&lStaffMode&7] &rPermission %permission% not found in the allowed list."
# Message shown when a non-player (e.g., console) tries to execute a command.
only-players: "&7[&b&lStaffMode&7] &rOnly players can use this command."
# Message shown when the plugin configuration (config.yml) is successfully reloaded.
reload-message: "&7[&b&lStaffMode&7] &rConfiguration reloaded."
# Message shown when a player tries to use a command that is not allowed in staff mode.
command-not-allowed: "&7[&b&lStaffMode&7] You are not allowed to use this command in staff mode."
# Message shown when a player tries to access containers (chests, furnaces, etc.) in staff mode without permission.
# staffmode.containers.open
no-containers-access: "&7[&b&lStaffMode&7] &rYou are not allowed to access containers in staff mode."
# Message shown when a player tries to modify containers (chests, furnaces, etc.) in staff mode without permission.
# staffmode.containers.modify
no-modify-access: "&7[&b&lStaffMode&7] &rYou are not allowed to modify containers in staff mode."
# Header for the help command output.
help-header: "&e&lStaffMode Help"
# Format for each command description in the help command output.
# %command% is the command name.
# %description% is the command description.
help-commands: "&e/%command% - %description%"
评论 0
登录后参与评分
还没有评论,来抢沙发吧