
SimpleReserve
简单易用的保留槽位插件
是否厌倦了无法为 VIP 玩家提供保留槽位,或无法加入已满的服务器?SimpleReserve 提供了一种简便的方式来实现这一功能,并支持 Bukkit 权限系统。
功能特性
- 简单易用的保留槽位插件,支持 Bukkit 权限
- 提供两种保留槽位实现方式:
- 满员方法:拥有 'simplereserve.enter.full' 权限的用户可以突破设定的玩家数量上限进入服务器
- 踢人方法:拥有 'simplereserve.enter.kick' 权限的用户在服务器满员时可以进入,系统会自动踢出第一个可以被踢出的玩家。拥有 'simplereserve.kick.prevent' 权限的玩家免疫被踢(利用权限继承!)
配置概览
SimpleReserve 的配置文件非常简单,首次运行时会自动生成。文件应包含以下内容:
reserve:
type: both
full:
cap: 5
reverttokick: false
kick-message: 为保留用户腾出空间而将其踢出!
full-message: 服务器已满!
reserve-full-message: 所有保留名额已满!
类型:
- full - 一种限制类型,使预留插件在服务器已满时仍能允许拥有相应权限的玩家加入。
kick - 相反,kick 类型仅允许拥有相应权限的玩家加入已满的服务器,它会踢出第一个遇到的、不具有防止被踢出权限的玩家。both - both 类型可以使用 full server 或 kick 方法,但如果用户拥有该权限,则优先使用 full 方法。none - “none” 类型实际上取消了预留槽位功能,允许你在不移除插件的情况下禁用它。
如果将类型设置为其他值,插件会自动将其重新生成回“both”(两者)。请注意这一点。
您还可以使用配置文件中的 `kick-message` 和 `full-message` 节点,自定义插件在不同情况下发送的消息。
权限概览
SimpleReserve 的权限设置……嗯……很简单。只需关注 3 个权限即可。
'simplereserve.enter.full' - 授予“完整”加入权限所需的许可。允许超出限制后加入。
'simplereserve.enter.kick' - 需要使用 "kick"(踢出)方式加入满员服务器时所需的权限——它会踢出它能找到的第一个玩家。
'simplereserve.kick.prevent' - 防止玩家被通过“踢出”(kick)方式加入的玩家踢出
示例
- 假设你有 4 个用户组:访客(默认)、普通用户、管理员和超级管理员。你希望让超级管理员和管理员通过“踢出”方法加入完整服务器,但仅允许以牺牲访客为代价进行踢出操作。
权限配置:
groups:
Guests:
default: true
info:
prefix: ''
suffix: ''
build: false
inheritance:
permissions:
Users:
default: false
info:
prefix: ''
suffix: ''
build: true
继承: 访客
权限:
- 'simplereserve.kick.prevent'
管理员:
默认: false
信息:
前缀: ''
后缀: ''
建造权限: true
继承自: Users
权限:
- 'simplereserve.enter.kick'
Admins:
默认: false
信息:
前缀: ''
后缀: ''
建造权限: true
继承自:
权限:
- '*'
请注意,Users 组仅拥有阻止加入的权限。任何从 Users 组继承权限的其他组也将拥有相同的权限。
现在,为了确保我们使用的是正确类型的预留槽位,config.yml 配置如下:
reserve:
类型: full,kick,both,none
类型: kick
- 同样的情况,但我们希望能够在服务器满员时加入而不是被踢出。我们只需要将 Mod 的 'simplereserve.enter.kick' 权限更改为 'simplereserve.enter.full',并将配置文件中的 "type: kick" 更改为 "type: full"。
- 我们也可以使用 * 来允许任意一种方法(取决于权限插件),并根据需要随意在 kick 和 full 之间切换类型。这将允许使用配置文件中定义的任意类型。
- 我们还可以允许 Mod 使用踢人方式加入,而管理员使用满员方式加入。在配置中我们将 type 设置为 both,并只给予 Mod 'simplereserve.enter.kick' 权限。在这种情况下,Admins 同时拥有 kick 和 full 权限,当两者都可用时将默认使用 full,而 Mod 可以使用他们拥有的权限加入。
正如你所见,几乎任何理想的情况都可以实现。
截图
没有加入权限的用户尝试加入已满员的服务器:
用户被踢出以便为预留成员腾出空间:
对于“踢人”加入方式,没有可被踢出的玩家:

full 类型加入的控制台输出:
20:17:46 [INFO] [SimpleReserve] Allowed player tj007razor to join full server!
项目与源码
请参阅我们的 项目页面 以获取动态和源代码。

SimpleReserve
Simple, easy-to-use Reserve slot plugin
Tired of not being able to offer VIPs reserved slots or being unable to join your own full server? SimpleReserve provides an easy way to add that functionality with bukkit permission support.
Features
- Simple to use reserve slots plugin with bukkit permission support
- Provides functionality for 2 reserve slot methods:
- Full method: Users with 'simplereserve.enter.full' may enter past the imposed player limit
- Kick method: Users with 'simplereserve.enter.kick' may enter a server when full by kicking the first player found that is able to be kicked. Users with the 'simplereserve.kick.prevent' permission are immune to being kicked(Utilize inheritance!)
Config Overview
The config file for SimpleReserve is very simple and will be auto-generated on first run. The file should contain:
reserve:
type: both
full:
cap: 5
reverttokick: false
kick-message: Kicked to make room for reserved user!
full-message: The server is full!
reserve-full-message: All reserve slots full!
Types:
- full - A type of full limits the reserve plugin to allowing people with the proper Permissions to join even when the server is full.
- kick - Conversely, a type of kick will only allow people with the proper Permissions to join a full server by kicking the first player it comes across that does not have Permission to prevent being kicked.
- both - A type of both can use either the full server or kick method, but the full method takes precedence if a user has that Permission.
- none - "none" type effectively eliminated the reserve slot functionality, allowing you to disable it without removing the plugin.
- if you put something else as the type, the plugin will automatically regenerate it back to "both". Please note this.
You may also customize the messages sent by the plugin for different situations using the 'kick-message' and 'full-message' config nodes.
Permissions Overview
Permissions for SimpleReserve are...well...simple. There are only 3 Permissions to worry about.
'simplereserve.enter.full' - Permission required to give "full" joining capabilities. Allows joining above limit.
'simplereserve.enter.kick' - Permission required to allow joining full server by "kick" method--kicks first player it can.
'simplereserve.kick.prevent' - Prevents player from being able to be kicked by someone joining using the "kick" method
Examples
- Lets say you have 4 usergroups. Guests(default), Users, Moderators, and Admins. You want to give Admins and Moderators joining full server via "kick" method, but you only want to be able to kick at the expense of guests.
Permissions:
groups:
Guests:
default: true
info:
prefix: ''
suffix: ''
build: false
inheritance:
permissions:
Users:
default: false
info:
prefix: ''
suffix: ''
build: true
inheritance: Guests
permissions:
- 'simplereserve.kick.prevent'
Moderators:
default: false
info:
prefix: ''
suffix: ''
build: true
inheritance: Users
permissions:
- 'simplereserve.enter.kick'
Admins:
default: false
info:
prefix: ''
suffix: ''
build: true
inheritance:
permissions:
- '*'
Note that Users only have the prevent permission. Any groups that inherit from Users will also have the same permission.
Now to ensure we're using the right type of reserve slot, the config.yml would look like:
reserve:
types: full,kick,both,none
type: kick
- Same situation but we want to be able to join over capacity instead of kicking. We only need to change Mod's 'simplereserve.enter.kick' permission to 'simplereserve.enter.full' and change "type: kick" to "type: full" in config.
- We can also use * to allow either method(DEPENDS ON PERMISSIONS PLUGIN), and just change the type to and from kick and full as desired. will allow whichever type is configured.
- We could also allow mods to join using the kick method and admins to join using full. In config we'd set type to both, and give mods 'simplereserve.enter.kick' Permission only. In this case, Admins have both kick and full Permission, which will default to using full when both are available, and mods can join using the Permission they have.
As you can see, almost any desirable Situation is achievable.
Screenshots
Users attempting to join full server with no Permission to enter:
User being kicked to make room for a reserved member:
No kick-able players for "kick" join method:

Console output for full type joining:
20:17:46 [INFO] [SimpleReserve] Allowed player tj007razor to join full server!
Project & Source
See our project page for activity and source.
评论 0
登录后参与评分
还没有评论,来抢沙发吧