........................... 
概述
EasyRegister 是一款简单的服务器注册插件,适用于希望确保新用户在正式游玩前已阅读服务器规则的服务器。该插件为指定用户(通过权限插件配置)提供三个命令的访问权限:/register、/setroom 和 /setspawnroom。
当用户输入 /register <代码> 后,他们将被传送至预设位置,并且其权限组也会相应更改。这两个选项以及自定义显示消息均可在 config.yml 文件中进行修改。
使用示例
EasyRegister 可用于确保玩家阅读服务器规则。当默认组的玩家在服务器中生成时,他们会被自动传送至规则房间。在该房间内,你可以列出所有规则,并显示一条提示:“输入 /register <code> 开始游戏!”或者,你也可以放置一条提示,指引玩家前往你的网站或论坛获取代码,之后才能开始游戏。<code> 可在 config.yml 文件中定义。一旦玩家输入 /register,他们将被传送到另一个位置,从而开始在服务器上游戏。
实现方式可以高度自定义,并非由插件本身决定,而是取决于你的创意。例如,你可以将默认权限组仅设置为允许聊天,从而防止破坏者(griefers)与其他内容交互,以此保护你的服务器。然后,你可以设置一个次要权限组(如“player”),让新加入的“visitor”用户转移到该组中。
命令
/setroom 用于设置用户加入服务器后,默认组将被传送到的位置。
/register <code> 当用户输入正确的代码时,会将其传送到指定位置。
/setspawnroom 用于设置用户在输入正确的注册代码后将被传送到的位置。
权限
easyregister.* - 授予拥有此权限节点的用户访问所有 EasyRegister 命令的权限。*注意* 不要将此权限赋予普通玩家,否则他们可能会获得更改出生点房间位置的权限!
easyregister.register - 授予拥有此权限节点的用户访问 /register 命令的权限。
easyregister.setroom - 拥有此权限节点的用户可以使用 /setroom 命令,选择新用户在加入时自动传送到的位置。
easyregister.setspawnroom - 授予拥有此权限节点的用户使用 /setspawnroom 命令的权限,该命令允许他们选择用户在输入正确的注册码后将被传送到的位置。
安装与教程
在你的服务器上安装 Vault 插件,然后将 easyregister.jar 拖入你的 plugins 文件夹。启动服务器以生成配置文件,然后根据需要进行编辑。配置文件位于 plugins/easyregister 目录下。
注意:如果未安装 Vault,本插件将无法正常工作,因此在报告错误之前请确保已安装。
如果你需要任何帮助,请在下方告知我们。
致谢
WarmakerT - 插件开发
HairyHandsMagee - 插件管理与初始构想。
........................... 
Overview
EasyRegister is a simple server registration plugin useful for servers which want to ensure new users have read the rules before they can properly play on the server. This plugin gives defined users (using a Permissions plugin) access to three commands: /register, /setroom and /setspawnroom.
Once the user types /register <code>, they will be teleported to the defined location and will have changed their permissions group. Both of these options and custom display messages are changeable in the config.yml file.
Examples of Use
EasyRegister can be used to ensure users read your server rules. When a user in the default group spawns in the server they will be automatically teleported to a rules room. In this room you can have all of your rules listed and then a notice saying "type /register <code> to begin playing!" Alternatively, you can leave a notice directing users to your website or forum to find the code before they can begin. The <code> can be defined in the config.yml file. Once the user types /register, they will be teleported to a different location allowing them to begin playing on the server.
The way this is done can be highly configured, not by the plugin itself, but with your own imagination. You could protect your server from griefers by making the default permissions group only have the ability to chat on the server and not interact with anything else. Then you could have a secondary group which the new 'visitor' user could transfer to, e.g. 'player'
Commands
/setroom will set the location users in the default group will be teleported to upon connection to the server.
/register <code> will teleport users to a defined location, provided they enter the correct code.
/setspawnroom will set the location users are teleported to once they enter the correct register code.
Permissions
easyregister.* - Grants users with this node access to all EasyRegister commands. *Note* Do not give this to normal players or they could have access to change spawn room locations!
easyregister.register - Grants users with this node access to the /register command.
easyregister.setroom - Grants users with this node access to the /setroom command allowing them to choose the location new users will be automatically teleported to.
easyregister.setspawnroom - Grants users with this node access to the /setspawnroom command which allows them to choose the location users will be teleported to once they enter the correct registration code.
Installation and Tutorial
Install the Vault plugin on your server then drag easyregister.jar into your plugins folder. Start your server to allow the configuration files to be created then edit them to your liking. They can be found in plugins/easyregister.
Note: The plugin will not work unless Vault is installed, so insure it is before reporting errors.
If you need any help, please let us know below.
Credits
WarmakerT - Plugin development
HairyHandsMagee - Plugin management and initial idea.
评论 0
登录后参与评分
还没有评论,来抢沙发吧