关于
该插件的初衷是为使用 Shivtr 系统管理基于角色列表构建社区的服务器创建一个自动管理的白名单系统。它会自动下载 characters.json 文件,并在玩家登录时扫描其中的用户名。你可以使用配置文件更改文件更新的频率。但是,出于设计限制,除非通过命令强制刷新,否则自动刷新至少需要 30 分钟。
起源
Shivtr Auth 最初是一个 libcomponents 脚本。libcomponents 脚本仅在您拥有 CommandBook(另一个由著名的 sk89q 编写的插件,他以 WorldEdit、WorldGuard 和 CraftBook 而闻名)的情况下才能使用。要使用它,您需要将脚本放入 component-classes 文件夹中。
使用方法
要使用 Shivtr Auth,您必须拥有一个启用了 Characters(角色)功能的基于 Shivtr 的网站。Shivtr Auth 的白名单系统使用角色列表来判断玩家是否可以登录。非常简单:安装、配置、将您希望加入的 Minecraft 用户名添加到角色列表中,等待 Shivtr Auth 更新其列表,然后即可完成设置 :)
命令
| 命令 | 权限 | 功能说明 |
| authupdate | shivtrauth.commands.update | 强制更新列表 |
安装
安装 Shivtr Auth 相对简单,只需将 Shivtr Auth.jar 放入您的 plugins 文件夹,然后按照以下说明配置 config.yml 即可。:)
配置指南
配置 Shivtr Auth 相对简单。有两个设置项:website-url(网站网址)和 update-frequency(更新频率)。顾名思义,website-url 设置应为您的网站网址。这支持自定义域名。例如,您可以使用 而不是 。这里有一个关键点需要注意,网址必须是完整的 URL。必须以与所示完全相同的格式进行格式化,将“example”一词替换为您的网站相关的内容。
第二个设置 update-frequency 也很容易理解。这是服务器更新文件的间隔时间,单位为分钟。需要注意的是,30 是最低值。任何低于此值的设置都会导致服务器强制将其调整为 30。这是为了保护您服务器安全而设计的。例如,如果未实现此功能并将属性设置为 0,则会导致服务器崩溃,因为更新调度速度会超过下载、使用以及释放内存任务的速度,从而导致服务器在几分钟内崩溃(这个问题在实际测试和创建此插件的过程中确实遇到过,这也是此功能存在的原因之一)。
迷你配置指南(简短、简单、快速)
website-url: - 这是您网站的网址,只需将 example 替换为您访问网站时输入的字符即可。例如,如果您访问的是 ,则将此 URL 中的 example 替换为 123abc,不要修改其他内容。如果您有完整的网址,请直接使用,但确保它以 http:// 开头并以 / 结尾。
update-frequency: 30 - 这是文件更新的间隔时间(分钟),可以是大于或等于 30 的任何值。
默认文件
website-url:
update-frequency: 30
开发者
想要与 Shivtr Auth 交互?了解如何操作请参阅 此处 或 此处(我推荐后者,它具有语法高亮显示)。
About
The plugin was started to create a self managing white list system for server's using the Shivtr system to run their communities based on the characters list. It automatically downloads the the characters.json file and scans it for the user's name upon login. You can use the configuration file to change the frequency that it updates the file. However, this is limited by design so that it must take at least 30 minutes to automatically refresh unless forced by the command.
Origins
Shivtr Auth was originally a libcomponents script. libcomponents scripts can only be used if you have CommandBook another plugin originally written by the famous sk89q known for WorldEdit, WorldGuard, and CraftBook. To use it you would put the script in the component-classes folder.
Usage
To use Shivtr Auth you must have a Shivtr based website with the Characters Feature enabled. Shivtr Auth's white list system uses the list of Characters to determine if the play can login. It's this simple: Install, Configure, add the MineCraft names you want to the Characters list, wait for Shivtr Auth to update its list(s) and you are done :)
Commands
| Command | Permission | What does it do? |
| authupdate | shivtrauth.commands.update | Force an update of the list(s) |
Installation
Installation of Shivtr Auth is relatively simple, just drop Shivtr Auth.jar in your plugins folder and then configure config.yml as instructed below. :)
Configuration Guide
Configuring Shivtr Auth is relatively simple. There are two settings these are website-url and update-frequency. As you can imagine the website-url setting should be your website's url. This does support custom domain names. For example you can use instead of . One critical thing to not about this is the url must be a full url. It must be formatted in the exact manor it is presented in changing out the word example for whatever is relevant to your website.
The second setting update-frequency is also rather self explanatory. This is how often in minutes the server will update the file. One important thing to note is 30 is the minimum value. Anything lower will cause the server to force the time to 30. This is done for the safety of your own server. For example if this feature was not implemented and you made the property 0, it would crash your server because it would schedule the updates faster than you could download them, use them, and faster than your ram could dismiss the task meaning your server would crash within minutes (this problem was actually encountered while testing and creating this plugin and that is one reason while this feature exist).
Mini-Configuration Guide (Short, Simple, Quick)
website-url: - This is your websites url just change out example for what you type to access your website so if you go to then change out the word example in this url for 123abc, change nothing else. If you happen to have a full url use it instead but ensure it is prefixed with http:// and suffixed with /.
update-frequency: 30 - This is how often the file is updated in minutes it can be any value equal to or higher than 30.
Default File
website-url:
update-frequency: 30
Developers
Want to interact with Shivtr Auth? Learn how here or here (I recommend this one, it has syntax highlighting).
评论 0
登录后参与评分
还没有评论,来抢沙发吧