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。
最后说明:
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:
评论 0
登录后参与评分
还没有评论,来抢沙发吧