摘要:
本插件为 Minecraft 添加了一个监狱,用于关押那些罪行轻微、不足以被禁封的玩家。在服刑期间,玩家无法传送离开,也无法破坏方块。玩家必须等到保释或刑期结束才能出狱。
一旦刑期结束,玩家可以自由传送离开监狱。插件不会自动将玩家传送出去。
命令列表:
/jail [玩家] [时间] - 时间格式例如:10m(10分钟)、30s(30秒)、2h(2小时)。
/bail [玩家] - 释放指定玩家出狱。
/setjail - 设置监狱的位置。
/buildjail - 如果你懒得动手,这个命令会自动为你建造一座监狱并将其位置设为监狱点。(注意:这只是我为了好玩做的功能,并非官方严肃推荐的功能)
权限节点:
本插件需要 bPermissions 才能正常运行。以下是相关的权限节点:
jailer.jail
jailer.bail
jailer.setjail
jailer.buildjail
希望我不需要再对它们进行解释。
配置说明:
配置方法:
本插件的设置非常简单。首次运行插件会生成默认配置文件。根据需要编辑该文件后,重新启动插件即可。
以下是对所有配置项的解释:
enableJail: true - 是否启用监狱功能?
enableBroadcast: true - 当玩家入狱时,是否向全服广播消息?
allowBuild: false - 囚犯是否可以破坏监狱内的方块?如果设置为 true,当囚犯破坏方块逃脱时,会向全服广播一条消息。
mutedJail: false - 玩家在监狱内是否禁止聊天?
canJailJailer: true - 拥有监禁他人权限的管理员自己是否也可以被关进监狱?
如果你的服务器使用 MySQL 数据库,请使用以下 SQL 创建数据表:
CREATE TABLE `jail` ( `name` varchar(32) NOT NULL, `timeleft` int(11) NOT NULL );
注意事项:
如果 logoutAllowed 设置为 true,当服务器重启时,所有在监狱中的玩家将会自动出狱。
Summary:
This plugin adds a jail to minecraft, for all those offenders whose offences are too small to be banned. While in the jail, players cannot teleport out of it, or break blocks. Players remain inside the jail until they are either granted bail or their sentence runs out.
As soon as the sentence runs out, players are free to warp out of the jail. They are not teleported out themselves.
List of commands:
/jail [player] [time] - time can be, for example, 10m, 30s, 2h (10 minutes, 30 seconds, 2 hours).
/bail [player] - releases the player from jail.
/setjail - sets the location of the jail.
/buildjail - in case you are lazy, this will build you a jail and /setjail it there. (note, this was just me doing this for fun, wasn't intended to be taken seriously)
Permissions:
This plugin requires bPermissions to function. Here are the following nodes:
jailer.jail
jailer.bail
jailer.setjail
jailer.buildjail
Hopefully I don't need to explain them to you.
Setting up:
Setting up:
This plugin is extremely simple to set up. Running the plugin once will generate its default configuration. Edit this as necessary, and start again.
Here is an explanation of all the nodes:
enableJail: true - is the jail being used?
enableBroadcast: true - do we broadcast to the server if a player is jailed?
allowBuild: false - Can the prisoner grief the jail? If set to true, a message will be broadcasting if the prisoner breaks free.
mutedJail: false - Can players speak while in the jail?
canJailJailer: true - can players with the permission to jail players be jailed themselves?
If your server is using a mysql database, use this to create the table.
CREATE TABLE `jail` ( `name` varchar(32) NOT NULL, `timeleft` int(11) NOT NULL );
Final notes:
All players who are in jail will come out of jail if the server is restarted if logoutAllowed is set to true.
评论 0
登录后参与评分
还没有评论,来抢沙发吧