BsruNoMobSpawn ??
English ภาษาไทย
BsruNoMobSpawn 是一款轻量且高效的 Minecraft Spigot/Paper 插件,允许玩家控制其所在区块中的怪物生成。使用该插件后,玩家可以选择不让自己周围生成敌对生物,从而创造更安全的游戏体验。
✨ 功能特性
- 玩家专属控制: 每位玩家可以单独开启或关闭自己的怪物保护功能。
- 加载区块内的全局保护: 启用后,只要玩家正在加载区块(在服务器视距范围内),无论玩家移动多远,这些区块内都不会生成任何敌对怪物。
- 清除已有怪物: 启用怪物保护时,会自动移除玩家当前所在加载区块中所有已存在的敌对生物。
- 可配置消息: 插件显示给玩家的所有消息均可通过
config.yml 文件完全自定义。
- 设置持久化: 玩家设置会被保存并加载,确保即使服务器重启或玩家登出,您的偏好设置依然保留。
- 用户友好的命令:
/nomobspawn [on|off]: 切换您自己的怪物保护开关。
/bsrunomobspawn: 显示插件信息(名称、版本、描述、作者、GitHub)。
/bsrunomobspawn help: 显示所有可用命令及其用法的列表。
/bsrunomobspawn list: (管理员) 列出当前启用了怪物保护的所有玩家。
/bsrunomobspawn reload: (管理员) 从 config.yml 重新加载插件配置,无需重启服务器。
- Tab 补全支持: 所有命令均支持直观的 Tab 键自动补全,便于使用。
- 轻量级性能: 设计为高度高效,最大程度减少对服务器 TPS 和性能的影响。
? 安装方法
- 从 GitHub Releases 页面 下载最新的
BsruNoMobSpawn.jar(您需要创建此页面并上传 JAR 文件)。
- 将
BsruNoMobSpawn.jar 文件放入 Minecraft 服务器的 plugins/ 文件夹中。
- 重启您的 Minecraft 服务器。
- 插件将在
plugins/BsruNoMobSpawn/ 目录下生成一个带有默认设置和消息的 config.yml 文件。
? 命令与权限
| Command |
Description |
Permission |
/nomobspawn on |
为您自己启用怪物保护。 |
bsrunomobspawn.user.toggle |
/nomobspawn off |
为您自己禁用怪物保护。 |
bsrunomobspawn.user.toggle |
/bsrunomobspawn (or /bsrunomob) |
显示核心插件信息。 |
(无需特定权限) |
/bsrunomobspawn help |
显示所有插件命令及其用法。 |
bsrunomobspawn.admin |
/bsrunomobspawn list |
列出启用了怪物保护的玩家。 |
bsrunomobspawn.admin |
/bsrunomobspawn reload |
从 config.yml 重新加载插件配置。 |
bsrunomobspawn.admin |
注意: 默认情况下,bsrunomobspawn.user.toggle 权限会授予所有玩家,而 bsrunomobspawn.admin 权限会授予服务器操作员 (op)。您可以使用如 LuckPerms 之类的插件来管理这些权限。
⚙️ 配置 (config.yml)
config.yml 文件允许您自定义所有面向用户的消息。
# BsruNoMobSpawn - Configuration File
# Messages displayed in-game. You can customize them as needed.
# Use & for Minecraft color codes (e.g., &a = green, &c = red).
# For "mobs_removed_confirmation_global", you can use %count% to display the number of monsters removed.
messages:
plugin_enabled: "&aBsruNoMobSpawn has been enabled!"
plugin_disabled: "&cBsruNoMobSpawn has been disabled!"
player_only_command: "&cOnly players can use this command!"
no_permission: "&cYou do not have permission to use this command!"
no_permission_console_admin: "You do not have permission to access this admin command from console!"
# /nomobspawn 命令的消息
status_current_off_global: "&e当前状态:&c全局范围内你的怪物生成已关闭&e。"
status_current_on_global: "&e当前状态:&a全局范围内你的怪物生成已开启&e。"
user_command_invalid_usage: "&c用法:/nomobspawn [on|off]"
toggle_on_success_global: "&a你已在加载区域启用了怪物保护!"
toggle_on_info_global: "&e你加载区域内的现有怪物将被移除!"
toggle_off_success_global: "&c你已在加载区域禁用了怪物保护!怪物将正常生成。"
mobs_removed_confirmation_global: "&a你加载区域内的 %count% 只怪物已被移除!"
toggle_already_on: "&e你已启用怪物保护!"
toggle_already_off: "&e你已禁用怪物保护!"
# /bsrunomobspawn (管理员和信息) 命令的消息
admin_command_invalid_usage: "&c用法:/bsrunomobspawn [help|list|reload]"
help_header: "&b--- BsruNoMobSpawn 帮助 ---"
help_command_user: "&a/nomobspawn [on|off] &f- 为你自己启用/禁用怪物保护。"
help_command_admin_info: "&a/bsrunomobspawn &f- 显示插件信息。"
help_command_admin_list: "&a/bsrunomobspawn list &f- 列出已启用怪物保护的玩家。"
help_command_admin_reload: "&a/bsrunomobspawn reload &f- 重新加载插件配置。"
help_footer: "&b---------------------------"
list_no_players_enabled: "&e目前没有玩家启用怪物保护。"
list_header: "&b--- 已启用怪物保护的玩家 ---"
list_players: "&a玩家:&f%players%"
list_footer: "&b----------------------------------------------"
reload_success: "&aBsruNoMobSpawn 配置已成功重新加载!"
reload_success_console: "BsruNoMobSpawn 配置已重新加载。"
? 贡献
欢迎贡献!请随时在 GitHub 仓库上提交问题或拉取请求。
? 许可证
本项目采用 MIT 许可证 - 详见 LICENSE.md 文件。(你可能也想创建一个 LICENSE.md 文件!)
BsruNoMobSpawn ??
English ภาษาไทย
BsruNoMobSpawn is a lightweight and efficient Minecraft Spigot/Paper plugin that allows players to control monster spawning in their loaded chunks. With this plugin, players can choose to prevent hostile mobs from spawning around them, creating a safer gameplay experience.
✨ Features
- Player-Specific Control: Each player can toggle their monster protection on or off individually.
- Global Protection within Loaded Chunks: When enabled, no hostile monsters will spawn in any chunk that the player is currently loading (within the server's view distance), regardless of how far they travel.
- Existing Mob Removal: Upon enabling monster protection, all hostile mobs already present in the player's currently loaded chunks will be automatically removed.
- Configurable Messages: All plugin messages displayed to players are fully customizable via the
config.yml file.
- Persistent Settings: Player settings are saved and loaded, ensuring your preferences remain even after server restarts or player logouts.
- User-Friendly Commands:
/nomobspawn [on|off]: Toggle monster protection for yourself.
/bsrunomobspawn: Displays plugin information (Name, Version, Description, Creator, GitHub).
/bsrunomobspawn help: Shows a list of all available commands and their usage.
/bsrunomobspawn list: (Admin) Lists all players who currently have monster protection enabled.
/bsrunomobspawn reload: (Admin) Reloads the plugin configuration from config.yml without needing a server restart.
- Tab Completion: All commands support intuitive tab completion for easy use.
- Lightweight Performance: Designed to be highly efficient, minimizing impact on server TPS and performance.
? Installation
- Download the latest
BsruNoMobSpawn.jar from the GitHub Releases page (You will need to create this and upload the JAR).
- Place the
BsruNoMobSpawn.jar file into your Minecraft server's plugins/ folder.
- Restart your Minecraft server.
- The plugin will generate a
config.yml file in plugins/BsruNoMobSpawn/ with default settings and messages.
? Commands & Permissions
| Command |
Description |
Permission |
/nomobspawn on |
Enables monster protection for yourself. |
bsrunomobspawn.user.toggle |
/nomobspawn off |
Disables monster protection for yourself. |
bsrunomobspawn.user.toggle |
/bsrunomobspawn (or /bsrunomob) |
Displays core plugin information. |
(No specific permission needed) |
/bsrunomobspawn help |
Shows all plugin commands and their usage. |
bsrunomobspawn.admin |
/bsrunomobspawn list |
Lists players with monster protection enabled. |
bsrunomobspawn.admin |
/bsrunomobspawn reload |
Reloads plugin configuration from config.yml. |
bsrunomobspawn.admin |
Note: By default, bsrunomobspawn.user.toggle is given to all players, and bsrunomobspawn.admin is given to server operators (op). You can manage these permissions using a plugin like LuckPerms.
⚙️ Configuration (config.yml)
The config.yml file allows you to customize all user-facing messages.
# BsruNoMobSpawn - Configuration File
# Messages displayed in-game. You can customize them as needed.
# Use & for Minecraft color codes (e.g., &a = green, &c = red).
# For "mobs_removed_confirmation_global", you can use %count% to display the number of monsters removed.
messages:
plugin_enabled: "&aBsruNoMobSpawn has been enabled!"
plugin_disabled: "&cBsruNoMobSpawn has been disabled!"
player_only_command: "&cOnly players can use this command!"
no_permission: "&cYou do not have permission to use this command!"
no_permission_console_admin: "You do not have permission to access this admin command from console!"
# Messages for /nomobspawn command
status_current_off_global: "&eCurrent status: &cMonster spawning is OFF&e for you globally."
status_current_on_global: "&eCurrent status: &aMonster spawning is ON&e for you globally."
user_command_invalid_usage: "&cUsage: /nomobspawn [on|off]"
toggle_on_success_global: "&aYou have enabled monster protection in your loaded areas!"
toggle_on_info_global: "&eExisting monsters in your loaded areas will be removed!"
toggle_off_success_global: "&cYou have disabled monster protection in your loaded areas! Monsters will spawn normally."
mobs_removed_confirmation_global: "&a%count% monsters in your loaded area have been removed!"
toggle_already_on: "&eYou already have monster protection enabled!"
toggle_already_off: "&eYou already have monster protection disabled!"
# Messages for /bsrunomobspawn (admin and info) commands
admin_command_invalid_usage: "&cUsage: /bsrunomobspawn [help|list|reload]"
help_header: "&b--- BsruNoMobSpawn Help ---"
help_command_user: "&a/nomobspawn [on|off] &f- Enable/disable monster protection for yourself."
help_command_admin_info: "&a/bsrunomobspawn &f- Displays plugin information."
help_command_admin_list: "&a/bsrunomobspawn list &f- Lists players with monster protection enabled."
help_command_admin_reload: "&a/bsrunomobspawn reload &f- Reloads the plugin configuration."
help_footer: "&b---------------------------"
list_no_players_enabled: "&eNo players currently have monster protection enabled."
list_header: "&b--- Players with Monster Protection Enabled ---"
list_players: "&aPlayers: &f%players%"
list_footer: "&b----------------------------------------------"
reload_success: "&aBsruNoMobSpawn configuration reloaded successfully!"
reload_success_console: "BsruNoMobSpawn config has been reloaded."
? Contributing
Contributions are welcome! Feel free to open issues or submit pull requests on the GitHub repository.
? License
This project is licensed under the MIT License - see the LICENSE.md file for details. (You might want to create a LICENSE.md file too!)
评论 0
登录后参与评分
还没有评论,来抢沙发吧