SERVERLOGON
Serverlogon 是一个作为二次登录系统运行的插件。如果玩家首次加入服务器,且强制注册已启用,插件将要求他进行注册;否则,玩家可以自行选择是否注册。如果玩家已经注册,插件将要求他解锁账户。玩家还可以随时更改密码、锁定账户或再次解锁。当玩家加入时还会生成烟花效果,并且你可以设置一个出生点,使每次玩家加入时都被传送至该位置。
密码将以加密形式保存。以确保确保玩家的安全!
该插件兼容 1.6.4
用法:
命令
- /slogon register:
- 用法:/slogon register <password> <confirm password>
- 描述:玩家首次加入时必须使用的命令。
- /slogon unlock:
- 用法:/slogon unlock <password>
- 描述:玩家已注册或锁定账户后,在加入时需使用的命令。
- /slogon lockacc:
- 用法:/slogon lockacc <password>
- 描述:玩家用于锁定其账户的命令。
- /slogon changepassword:
- 用法:/slogon changepassword <old password> <new password> <confirm new password>
- 描述:玩家想要更改密码时需使用的命令。
- /slogon setreminder:
- 用法:/slogon setreminder <reminder>
- 描述:设置密码提示信息的命令。
- /slogon reminder:
- 用法:/slogon reminder
- 描述:查看你的密码提示信息的命令。
- /slogon changereminder:
- 用法:/slogon changereminder <new reminder>
- 描述:更改你的密码提示信息的命令。
- /slogon SetSpawnLoc:
- 用法:/slogon SetSpawnLoc
- 描述:将玩家的位置设置为强制出生点位置。
- 权限:需要 'specials.location.set'
- /slogon ResetPassword
- 用法:/slogon ResetPassword <name> <new password> <confirm new password>
- 描述:这将把玩家的密码重置为新密码。名称区分大小写!
- 权限:需要 'players.passwords.reset' 权限才能执行此操作。
你也可以使用 /sl <command> 代替 /slogon <command>,两者均可正常使用。
安装
要安装该插件,只需将 serverlogon.jar 放入你的 plugins 文件夹中。启动服务器后,插件将自动完成所有安装工作。
你会注意到 plugins 文件夹中生成了一个名为 serverlogon 的文件夹,其中包含一个 config.yml 文件。所有密码都将保存在此文件中。因此,如果有人忘记了密码,你只需删除其名字后面的密码部分,或者将其更改为你想要的即可。
注意!如果你安装了 1.1.3 版本,则必须删除 config.yml 文件。对于这个问题深表歉意,但这一步是必要的!
使用配置文件
当你正确安装插件后,你会发现 plugins 文件夹中出现了一个名为 serverlogon 的文件夹。Serverlogon 文件夹中包含一个名为 config.yml 的文件。打开该文件,你将看到三个主要部分。
默认设置 (DefaultSettings)
在这里,你将找到运行插件所需的所有默认设置。
- True:玩家首次加入时需要注册。
- False:玩家首次加入时不需要注册,但仍可以注册。
消息 (Messages)
在这里,你可以更改玩家在特定时刻收到的消息。你可以使用 & 符号和数字来更改消息的颜色,具体说明请参见此处。所有消息都是必需的,必须填写完整。
- FirstJoin(首次加入):这是玩家在首次加入且启用强制注册时收到的消息。
- FirstJoinUnforced(非强制首次加入):这是玩家在首次加入且禁用强制注册时收到的消息。
- LaterJoin(后续加入):这是玩家已注册后再次加入时收到的消息。
- NeedRegistering(需要注册):这是玩家尚未注册却尝试移动或建造时收到的消息。
- AfterRegistering(注册后):这是玩家注册后收到的消息。此项默认为 none(无)。如果设为 none,玩家将不会收到任何消息;否则将会收到。
- NeedUnlock(需要解锁):这是玩家尚未解锁却尝试移动或建造时收到的消息。
- AfterUnlock(解锁后):这是玩家解锁后收到的消息。此项默认为 none(无)。如果设为 none,玩家将不会收到任何消息;否则将会收到。
特殊功能 (Specials)
在这一部分,你将找到所有的特殊功能。
烟花 (Firework)
在这里,你可以启用或禁用当玩家加入时生成烟花的效果。
- false:玩家加入时不会生成烟花(默认选项)
- true:玩家加入时会生成烟花
位置 (Location)
在此可以启用/禁用:当玩家加入服务器时,是否强制将其传送至指定位置。
- false:不会强制将玩家传送至指定位置。(默认选项)
- true:会强制将玩家传送至指定位置。
- World(世界):在此设置玩家必须被传送到的世界名称。(注意!此设置区分大小写!)
- X:这是玩家必须被传送到的位置的 X 坐标。
- Y:这是玩家必须被传送到的位置的 Y 坐标。
- Z:这是玩家必须被传送到的位置的 Z 坐标。
Passwords.yml
此处用于保存密码和提醒信息。密码将以加密形式存储,无法直接查看明文。
Permissions(权限)
目前仅有两个权限。
- specials.location.set:授予您使用 /SetSpawnLoc 命令的权限(仅推荐管理员使用)
- players.passwords.reset:授予您使用 /ResetPassword 命令的权限(仅推荐管理员使用)
- 其他玩家无需任何权限即可正常使用。其余所有功能均无需权限即可运行。
Quote(说明):
本插件使用了 Hidendra 的插件指标系统(plugin metrics system),这意味着以下信息会被收集并发送至 mcstats.org:
- 一个唯一标识符
- 服务器的 Java 版本
- 服务器处于离线模式还是在线模式
- 插件的版本号
- 服务器的版本号
- 操作系统版本/名称及架构
- CPU 的核心数量
- 在线玩家数量
- Metrics 的版本号
若希望退出此服务,可编辑 plugins/Plugin Metrics/config.yml 文件,并将 opt-out 设置为 true。
Problems(问题反馈)
如果您在服务器方面遇到技术问题,或需要帮助安装该插件,请随时发表评论或通过 gylliegyllie@gmail.com 联系我。
ToDo(待办事项)
- 使插件与代理服务器插件兼容
添加更改加入消息的功能
添加密码提醒功能
- (如果您希望添加更多功能,请告诉我)
SERVERLOGON
Serverlogon is a plugin that works as a secondary logon system. If the player joins for the first time the plugin will ask him to register if it is forced. Otherwise he is free to register or not. If he is already registered the plugin will ask him to unlock his account. Players also can change their password, lock their account whenever they want and unlock them again. There will also spawn firework when a player joins and you can set a spawnpoint where a player has to be teleported to every time he joins.
Password will be saved Encrypted. To make sure that the player safety is guaranteed!
The plugin is 1.6.4 compatible
USAGE:
Commands
- /slogon register:
- Usage: /slogon register <password> <confirm password>
- Description: Command that player has to use the first time he joins.
- /slogon unlock:
- Usage: /slogon unlock <password>
- Description: Command that player has to use when he joins when he is registered or when he locked his account.
- /slogon lockacc:
- Usage: /slogon lockacc <password>
- Description: Command that player has to use to lock his account.
- /slogon changepassword:
- Usage: /slogon changepassword <old password> <new password> <confirm new password>
- Description: Command that player has to use when he wants to change his password.
- /slogon setreminder:
- Usage: /slogon setreminder <reminder>
- Description: Command to set a password reminder.
- /slogon reminder:
- Usage: /slogon reminder
- Description: Command to check your password reminder.
- /slogon changereminder:
- Usage: /slogon changereminder <new reminder>
- Description: Command to change your password reminder.
- /slogon SetSpawnLoc:
- Usage: /slogon SetSpawnLoc
- Description: Set the players location to the forced spawn location.
- Permission: 'specials.location.set' is needed
- /slogon ResetPassword
- Usage: /slogon ResetPassword <name> <new password> <confirm new password>
- Description: This resets the players password to a new one. The name is capital sensitive!
- Permission: 'players.passwords.reset' is needed to do this.
You can also use /sl <command> instead of /slogon <command> but both work fine.
Installation
To install the plugin just place the serverlogon.jar in your plugin folder. Start the server and the plugin will automatically install everything.
You will see that a folder called serverlogon will be made in your plugins folder including a config.yml file. In this file all the passwords will be saved. So if someone forgets his password you can just reset it by deleting the password behind his name or changing it to whether you want to.
ATTENTION! If you have installed version 1.1.3 you have to delete the config.yml file. Sorry for this issue but it was necessary!
Using config file
When you have installed the plugin correctly you will see that a map called serverlogon will appear in your plugin folder. The folder Serverlogon contains a file called config.yml. When you open the file you will see three main parts.
DefaultSettings
Here you will find all the default settings that are needed to make the plugin run correctly.
- True: Players need to register when they join for the first time.
- False: Players don't need to register when they join for the first time but they still can.
Messages
Here you can change the messages players get on a certain moment. You can change the colors of the messages by using the & symbols and numbers as explained here. All messages are necessary and have to be filled in.
- FirstJoin: This is the message a player gets when he joins for the first time and forced register is enabled.
- FirstJoinUnforced: This is the message a player gets when he joins for the first time and forced register is disabled.
- LaterJoin: This is the message a player gets when he joins and he is registered.
- NeedRegistering: This is the message a player gets when he tries to move or build when he haven't registered yet.
- AfterRegistering: This is the message a player gets when he registers. This is automatically be set to none. If it says none the player won't get a message. Otherwise they will.
- NeedUnlock: This is the message a player gets when he tries to move or build when he haven't unlocked yet.
- AfterUnlock: This is the message a player gets when he unlocks. This is automatically be set to none. If it says none the player won't get a message. Otherwise they will.
Specials
In this part you will find all the special functions.
Firework
Here you can enable/disable if there will spawn firework when a player joins.
- false: There will spawn no firework when a player joins (Default option)
- true: There will spawn a firework when a player joins
Location
Here you can enable/disable if a player is forced to be teleported to a specified place when he joins.
- false: The player won't be forced to be teleported to a specified place. (Default option)
- true: The player will be forced to be teleported to a specified place.
- World: Here you set the name of the world where the player has to be teleported to. (Attention! This is capital sensitive!)
- X: This is the X - coordinate of the location where the player has to be teleported to.
- Y: This is the Y - coordinate of the location where the player has to be teleported to.
- Z: This is the Z - coordinate of the location where the player has to be teleported to.
Passwords.yml
Here will the passwords and the reminders be saved. The passwords will only be seen as encrypted passwords.
Permissions
For the moment there is only two permission.
- specials.location.set: This gives you the permission to use the /SetSpawnLoc command (only admins recommended)
- players.passwords.reset: This gives you the permission to use the /ResetPassword command (only admins recommanded)
- Other players don't need to have any permissions. All other functions work without permissions.
Quote:
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Problems
If you are having some technical problems with the server or need help to install the plugin feel free to post a comment or contact me at gylliegyllie@gmail.com
ToDo
- Making the plugin work with a proxy server plugin
adding possibility to change the join message
adding password reminders
- (if you want more stuff added just let me know)
评论 0
登录后参与评分
还没有评论,来抢沙发吧