BanReport
摘要
本插件的唯一功能就是强制不受欢迎的玩家离开服务器,方式包括封禁、踢出、临时封禁或 IP 封禁。如果您愿意,可以通过解除封禁让他们重新加入。
该插件还会记录管理员在封禁玩家时提供的所有位置和备注,并允许快速传送至这些位置进行调查(如有必要)。
命令列表:
/ban [player] {-s} [reason] - 将玩家 [player] 永久封禁出服务器,并在其每次尝试登录时显示一条友好的提示信息。如果添加了 -s 参数,其他当前在线的玩家将不会收到封禁通知。如果玩家已被封禁,则会追加新的信息 [reason]。
/tempban [player] {-s} [time] [reason] - 暂时禁止某玩家游戏。时间由一个整数后跟单位组成,单位为 s(秒)、m(分钟)、h(小时)或 d(天)。例如,/tempban nublet 30m spamming 将会把玩家 nublet 封禁 30 分钟。
/kick [player] {-s} [reason] - 以友好的理由将玩家踢出游戏。被踢出的玩家可以立即重新加入。
/banip [player] OR [IP] - 阻止任何使用特定 IP 地址的账号加入游戏。/banip nublet 会封禁 nublet 及其 IP,而 /banip 53.67.32.11 则会阻止任何尝试使用 53.67.32.11 作为 IP 登录的账号。
/warn [player] [reason] - 警告玩家其行为不当,并将警告记录保存到数据库中。
/warnings {player} - 如果没有指定玩家参数,则显示执行此命令玩家的警告记录;否则显示 {player} 的警告记录。
/baninfo [player] - 回忆关于被封禁玩家 [player] 的信息。将列出其被封禁的原因以及添加的任何额外备注。
/addinfo [player] [information] - 添加关于被封禁玩家的额外信息。这也会记录您当前所在的坐标。
/removeinfo [player] [id] - 从数据库中移除“额外信息”条目。如果出错时非常有用。
/bantp [player] [id] - 传送至 ID 为 [id] 的额外信息所在位置。对于调查非常有用。
/banexport - 将数据库导出到 banned-players.txt。
/banimport - 从 banned-players.txt 导入数据到数据库。
权限:
以下是权限节点:
banreport.ban - 用于 /ban, /tempban
banreport.baninfo - 用于 /baninfo, /addinfo, /removeinfo
banreport.bantp
banreport.io - 用于 /banexport 和 /banimport
banreport.kick
banreport.unban
banreport.banip
banreport.warn
banreport.warnings.own - 是否允许玩家查看自己的警告?
banreport.warnings.viewall - 允许他人查看任何玩家的警告。
设置:
BanReport 基于 MySQL 数据库运行,所需表的查询语句如下:
您也可以通过在 config.yml 文件中将 useMySQL 设置为 false 来使用 SQLite。
最后说明:
- 要从 1.x 升级到 2.x,请参阅此页面:
BanReport
Summary
All this plugin does is force unwanted players to leave, either by banning them, kicking them, temporary banning them or IP-banning them. If you like, you can allow them to return by unbanning them.
This plugin will also report all the locations and notes an administrator has given on a banned player, and allows quick access to teleport to these locations to investigate (if required).
List of commands:
/ban [player] {-s} [reason] - Bans player [player] permanently from the server, and gives them a nice message each time they try to log in. If -s is added, the ban will be silent to the other players currently online. If a player is already banned, it will add additional information with [reason].
/tempban [player] {-s} [time] [reason] - Temporarily bans a player from the game. Time is given with an integer, followed by a unit, which is either s, m, h, or d. For example, /tempban nublet 30m spamming. Will ban player nublet for 30 minutes.
/kick [player] {-s} [reason] - kicks a player from the game with a friendly reason. The player will be able to instantly rejoin.
/banip [player] OR [IP] - blocks any account with a specific IP address from joining the game. /banip nublet will ban nublet, and ban his ip, whilst /banip 53.67.32.11 will block any accounts that try to sign in with 53.67.32.11 as their IP.
/warn [player] [reason] - warns a player about their actions, and saves it to the database.
/warnings {player} - if there is no argument for player, the person who executed the command's warnings will be shown. Otherwise it will be {player}'s
/baninfo [player] - Recalls information about banned player [player]. Will list the reason they were banned for, and any additional notes that have been added.
/addinfo [player] [information] - Adds additional information regarding a banned player. This will log the coordinates of where you are standing as well.
/removeinfo [player] [id] - removes an 'additional info' entry from the database. Useful if you make a mistake.
/bantp [player] [id] - Teleports you to the location of where the additional information with id [id] was made. Useful for investigations.
/banexport - Exports the database to banned-players.txt.
/banimport - Imports from banned-players.txt to the database.
Permissions:
Here are the permission nodes:
banreport.ban - required for /ban, /tempban
banreport.baninfo - required for /baninfo /addinfo, /removeinfo
banreport.bantp
banreport.io - required for /banexport and /banimport
banreport.kick
banreport.unban
banreport.banip
banreport.warn
banreport.warnings.own - is the player allowed to view their own warnings?
banreport.warnings.viewall - allow people to see any player's warnings.
Setting up:
BanReport runs off a MySQL database, and the query for the required table are here:
You can also use SQLite by setting useMySQL to false in the config.yml file.
Final notes:
- To update from 1.x to 2.x, see this page:
下载 BanReport
下载 BanReport
下载 BanReport
下载 BanReport
下载 BanReport
下载 BanReport
下载 BanReport
下载 BanReport
下载 BanReport
下载 BanReport
修复了 /banimport 命令的错误
优化了配置文件。现在更加简洁,并会自动添加缺失的配置节点
修复了 /baninfo 命令的错误
重写了 /warn 命令,在达到指定次数后自动封禁(设置为 01242039785 可关闭此功能)
为感兴趣的开发者提供的开发版构建
已更新以支持 RB 1.1
修复了 SQLite 数据库创建问题
已更新以支持 RB 1.0.1
使额外信息的阅读变得更加轻松 添加了包含 IP 地址的封禁历史记录 添加了警告记录 数据库结构更加完善
修复了因数据库未正确关闭导致的内存泄漏问题。
修复了 /baninfo 命令,并添加了 banlist.html 生成功能 - 使用 /banexport html 命令
修复了临时封禁时间解析不正确的问题。
将 replaceAll 改为 replace,这样即使缺少某些参数也不会出错。
修复了 PermissionsEx 兼容性问题
修复了 SQLite 表创建不正确的问题
增加了对 SQLite 的支持
修复了处理大写用户名时的问题
更改了权限设置
增加了对消息配置的支持(基础版本)
增加了 /banexport 和 /banimport 命令
增加了更多权限项。
已上传!
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧