SilentJoin - Minecraft Paper 插件
适用于 Paper 1.21.11 & 26.1.x+ 的 Minecraft Paper 插件,用于隐藏管理员和配置玩家的加入与离开消息。
功能
- 为管理员隐藏消息:服务器管理员的加入/离开消息会自动隐藏
- 可配置的静默加入:管理员可以使用
/silentjoin <player> 命令为任何玩家切换静默加入状态
- 持久化配置:静默加入设置会保存到 JSON 文件中,并在服务器重启后保持
- 基于 UUID 存储:使用 UUID 而非玩家名称进行可靠的患者识别
- 离线玩家支持:同时适用于在线和离线玩家
命令
/silentjoin <player>
为玩家切换静默加入状态。启用后,该玩家的加入和离开消息将被隐藏。
权限:silentjoin.command(默认:op)
用法示例:
/silentjoin PlayerName - 为 PlayerName 切换静默加入
/silentjoin 12345678-1234-1234-1234-123456789012 - 支持玩家名称和 UUID
消息:
- 如果已启用:"Silent join enabled for <player>."
- 如果已禁用:"Silent join disabled for <player>."
- 如果未提供玩家:"Usage: /silentjoin <player>"
配置
该插件将静默加入设置存储在 plugins/SilentJoin/silentjoin.json 中。该文件包含启用静默加入的玩家的 UUID 列表。
示例 silentjoin.json:
[
"12345678-1234-1234-1234-123456789012",
"87654321-4321-4321-4321-210987654321"
]
行为
加入/退出消息隐藏
当满足以下条件时,消息会被隐藏:
- 玩家具有管理员权限(isOp())
- 或者玩家的 UUID 在静默加入配置列表中
命令行为
/silentjoin 命令允许管理员执行以下操作:
- 为任何玩家(在线或离线)启用/禁用静默加入
- 更改会立即保存到配置文件中
- 重新加载服务器会保留这些设置
权限
silentjoin.command - 允许使用 /silentjoin 命令(默认:op)
故障排除
插件无法加载
- 确保您使用的是 Paper 1.21.11 或兼容版本
- 检查所有依赖项是否已由 Maven 正确解析
- 验证 plugin.yml 格式是否正确
命令无效
- 检查您是否具有
silentjoin.command 权限
- 确保玩家名称拼写正确
- 检查服务器日志以查找任何错误消息
配置未持久化
- 确保插件对
plugins/SilentJoin/ 文件夹具有写入权限
- 检查
silentjoin.json 是否存在且可读
- 验证 JSON 文件格式是否有效
遇到问题?请在 Discord 上私信 frostyy8575 获取支持。
SilentJoin - Minecraft Paper Plugin
A Minecraft Paper plugin for Paper 1.21.11 & 26.1.x+ that hides join and quit messages for operators and configured players.
Features
- Hide messages for operators: Join/quit messages are automatically hidden for server operators
- Configurable silent join: Operators can toggle silent join for any player using
/silentjoin <player>
- Persistent configuration: Silent join settings are saved to a JSON file and persist across server restarts
- UUID-based storage: Uses UUIDs instead of player names for reliable player identification
- Offline player support: Works with both online and offline players
Commands
/silentjoin <player>
Toggle silent join for a player. When enabled, the player's join and quit messages are hidden.
Permission: silentjoin.command (default: op)
Usage Examples:
/silentjoin PlayerName - Toggles silent join for PlayerName
/silentjoin 12345678-1234-1234-1234-123456789012 - Works with both player names and UUIDs
Messages:
- If enabled: "Silent join enabled for <player>."
- If disabled: "Silent join disabled for <player>."
- If no player provided: "Usage: /silentjoin <player>"
Configuration
The plugin stores silent join settings in plugins/SilentJoin/silentjoin.json. The file contains a list of UUIDs for players with silent join enabled.
Example silentjoin.json:
[
"12345678-1234-1234-1234-123456789012",
"87654321-4321-4321-4321-210987654321"
]
Behavior
Join/Quit Message Hiding
Messages are hidden when:
- The player has operator status (isOp())
- OR the player's UUID is in the silent join configuration list
Command Behavior
The /silentjoin command allows operators to:
- Enable/disable silent join for any player (online or offline)
- Changes are saved immediately to the configuration file
- Reloading the server maintains these settings
Permissions
silentjoin.command - Allows usage of the /silentjoin command (default: op)
Troubleshooting
Plugin won't load
- Ensure you're using Paper 1.21.11 or compatible version
- Check that all dependencies are correctly resolved by Maven
- Verify the plugin.yml is properly formatted
Command not working
- Check that you have the
silentjoin.command permission
- Ensure the player name is spelled correctly
- Check server logs for any error messages
Configuration not persisting
- Ensure the plugin has write permissions to the
plugins/SilentJoin/ folder
- Check that
silentjoin.json exists and is readable
- Verify the JSON file format is valid
Having any issues? DM frostyy8575 on Discord for support.
评论 0
登录后参与评分
还没有评论,来抢沙发吧