Mawaba: Manage(管理)warnings(警告)和bans(封禁),用于 Minecraft 服务器上的玩家管理。
该工具旨在让服务器或网络的管理成员能够处理社区事务。警告、踢出和封禁均包含在此措施中。插件支持双模式运行:可安装在 Bungee 和 Spigot(或其等效平台)上以提供多种操作功能。为了获得最佳效果,建议在两者上都安装。
踢出和封禁命令的设计复用了 Bungee Admin Tools 的语法,因为管理团队已经熟悉这种语法。
需要 MySQL 数据库。
警告
警告旨在以更直接的方式(而非简单的聊天消息)告知玩家其违反了规则。管理员可以输入 /warning PLAYER [reason] 来提醒某人收敛行为。如果未提供原因,将显示关于恶意破坏(griefing)的默认说明。
一个核心概念是:管理员无需知道某人已被警告过多少次;他们只需反复使用 /warning 即可,效果会自动叠加。
超过六个月的警告不计入统计。
- 第一次
/warning 向目标显示清晰的“注意”消息,并使其减速 30 秒以引起注意。
- 第二次警告与上述相同,并在延迟后将其踢出服务器。
- 第三次警告完全停止该玩家的操作,显示消息后将其踢出,作为最终警告。
- 第四次警告执行 30 天的封禁。
- 第五次警告执行永久封禁。
如果警告是误发的,使用 /warning PLAYER clear 将移除最新的一条警告,确保其状态正确重置。
踢出与封禁
你应该对这些措施有所预期。提供临时和永久选项,完整语法如下所述。
设置指南
- 下载插件并将其放入服务器 / Bungee 的
plugins/ 目录中。
- 启动并停止服务器 / Bungee 以创建配置文件。
- 编辑
plugins/IOMawaba/config.yml 以设置你的配置项,详见下文。
- 重新启动服务器 / Bungee。
愿望清单
- 在服务器层面实现踢出和封禁命令,以便独立使用。
- 在 Bungee 层面实现警告功能,以避免需要本地安装。
- 允许封禁方法仅应用于网络中的单个服务器。
- 灵活的通知和警告效果。
配置
database.host: 数据库主机
database.port: 数据库端口
database.base: 数据库名称
database.username: 数据库用户名
database.password: 数据库密码
bungee.use-broadcast: 如果在 Bungee 环境中使用,请设置为 true
命令
Bungee
前缀 "g" 代表 "global"(全局),即整个网络。任何 [reason] 消息均为可选。
/gkick PLAYER [reason]: 从网络中踢出一名玩家,附带可选消息
/gtempban PLAYER DURATION [reason]: 暂时封禁一名玩家
/gtempbanip IP DURATION [reason]: 暂时封禁一个 IP 地址
/gban PLAYER [reason]: 永久封禁一名玩家
/gbanip IP [reason]: 永久封禁一个 IP 地址
/gunban PLAYER: 解除对一名玩家的封禁
/gunbanip IP: 解除对一个 IP 地址的封禁
临时封禁的 DURATION 支持以下任意组合:
- 7y 或 7years:7 年
- 6mo 或 6months:6 个月
- 5w 或 5week:5 周
- 4d 或 4days:4 天
- 3h 或 3hours:3 小时
- 2m 或 2mins:2 分钟
- 1s 或 1second:1 秒
可以使用单数和复数形式,并按任意顺序混合使用。例如,2y4mo 表示封禁 2 年零 4 个月。3mins5day 表示 5 天零 3 分钟。10s 表示 10 秒。
Server
/warning PLAYER [reason]: 向玩家发出警告
/warning PLAYER clear: 清除最新的一条警告
/w: /warning 的别名
权限
iomawaba.admin: 访问全套命令
iomawaba.warning: 允许用户发出或撤回警告
为什么这个插件可靠?
我在自己的服务器上使用了所有我的插件,我喜欢我的插件稳定、可靠且维护成本低。版本升级时不应出现中断问题,但如果真的发生,我会迅速修复。
支持我的工作
如果你喜欢我的工作,我 欢迎赞助! 自 2011 年以来我一直在运营 Minecraft 服务器,为服务器所有者开发了多个插件和工具,现在正逐步发布其中许多作品。你的支持将极大地鼓励我投入更多时间和精力于此,并及时修复随时间可能发现的问题!

Mawaba: Manage warnings and bans for players on a Minecraft server.
This tool is designed to allow a server or network's staff members to handle the community. Warnings, kicks and bans are included in these measures. The plugin works in dual mode: it can be installed on both Bungee and Spigot (or equivalents) to provide various operations. For the best results, install it on both.
The kicks and bans commands were designed to reuse the syntax of Bungee Admin Tools as the staff was already familiar with the syntax.
A MySQL database is required.
Warnings
Warnings are meant to tell a player that they're violating the rules, using a method more direct than a simple chat message. The staff can enter /warning PLAYER [reason] to tell someone to back off. If no reason is provided, a default explanation about griefing will appear.
A core concept is that the staff members don't have to know how many times someone has been warned: they can just /warning them over and over again and the effects will stack automatically.
Warnings older than six months aren't counted.
- The first
/warning shows a clear "Pay attention" message to the target and slows them down for 30 seconds to grab their attention.
- The second warning does the same as the above, plus kicks them out after a delay.
- The third warning completely stops the player, displays the message then kicks them as a final warning.
- The fourth warning bans for 30 days.
- The fifth warning gives a permanent ban.
If a warning has been given by mistake, /warning PLAYER clear will remove the latest one, ensuring their standing is correctly set.
Kicks and bans
You should know what to expect from these. Temporary and permanent options are offered, the full syntax is described below.
Setup guide
- Download the plugin and place it in the plugins/ directory of the server / Bungee.
- Start and stop the server / Bungee to create the configuration file.
- Edit
plugins/IOMawaba/config.yml to set your settings, described below.
- Restart the server / Bungee.
Wishlist
- Implement the kicks and bans commands at the server level for standalone use.
- Implement the warnings at the Bungee level to avoid requiring local installs.
- Allow the ban methods to apply to a single server on a network.
- Flexible notifications and warning effects.
Configuration
database.host: Database host
database.port: Database port
database.base: Database name
database.username: Database username
database.password: Database password
bungee.use-broadcast: Set to true if used in a Bungee environment
Commands
Bungee
The "g" prefix stands for "global", as in the entire network. Any [reason] message is optional.
/gkick PLAYER [reason]: Kick a player from the network, with an optional message
/gtempban PLAYER DURATION [reason]: Temporarily ban a player from the network
/gtempbanip IP DURATION [reason]: Temporarily ban an IP address from the network
/gban PLAYER [reason]: Permanently ban a player from the network
/gbanip IP [reason]: Permanently ban an IP address from the network
/gunban PLAYER: Unban a player from the network
/gunbanip IP: Unban an IP address from the network
DURATION for temporary bans supports a mix of any of the following:
- 7y or 7years: 7 years
- 6mo or 6months: 6 months
- 5w or 5week: 5 weeks
- 4d or 4days: 4 days
- 3h or 3hours: 3 hours
- 2m or 2mins: 2 minutes
- 1s or 1second: 1 second
Plural and singular forms can be used and mixed in any order. For example, 2y4mo would ban for 2 years and 4 months. 3mins5day would be 5 days and 3 minutes. 10s would be 10 seconds.
Server
/warning PLAYER [reason]: Issue a warning to the player
/warning PLAYER clear: Clear the latest warning provided
/w: Alias for /warning
Permissions
iomawaba.admin: Access to the full suite of commands
iomawaba.warning: Allow the user to issue warnings or retract them
Why is this plugin reliable?
I use all of my plugins on my own servers, and I like my plugins to be stable, reliable and low maintenance. Breaks on version upgrades are not expected, but should they happen, they will be quickly fixed.
Support my work
If you enjoy my work, I welcome sponsors! I've been running Minecraft servers since 2011, developed several plugins and tools for server owners, and I'm now working my way through releasing many of them. Your support would go a long way toward encouraging me to put more time and effort into this, plus fix any issues that might be discovered over time!

评论 0
登录后参与评分
还没有评论,来抢沙发吧