ServerLogon
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.
- ForceRegister:
- 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.
- Enabled
- 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.
- Enabled
- 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.
- Location
- 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 [email protected]
ToDo
- Making the plugin work with a proxy server plugin
adding possibility to change the join messageadding password reminders- (if you want more stuff added just let me know)
@LHammonds
Thanks for warning me that some commands overlap with other plugins. Also I am working on the colors for the messages and indeed it says deafultsettings in the config but it is working this way, so i'll leave it for now.
Thanks for creating and sharing this plugin. This sounds exactly like what I am looking for...a way to allow my staff to protect their accounts but not force it on everyone. I'm testing version 1.4.1.
The default config.yml seems to have a typo in it. "DeafultSettings:" to "DefaultSettings:" The plugin expects this typo so if it is corrected in the config, it simply creates another section with the typo and default values.
When logging in for the 1st time after installing the plugin, I am greeted with the following message:
This message is nowhere to be found in the config.yml file. If it were, I would change it to something a bit more friendly such as:
If I attempt to move, the screen jumps back and forth in such a manner that it makes me want to lose my lunch. Not sure how to describe it other than spastic twitching. If there is any way to prevent this, please do so. There is no way I'd subject my players to such an introduction to my server.
I then disable ForceRegister but notice the messages are not enclosed in quotes which can be problematic especially trying to use color codes. So I check to see if "&a" color code works in a message.
I did not get much further than this because I use LWC which also has "/unlock" as a command and it overrides this plugin.
Due to all the commonly-used words as commands, I'd recommend switching to a single command with arguments. For example:
Test Environment
Thanks,
LHammonds
Can you make this run with bungee (or a proxy server) plugin?
@jhs232
@jhs232 In version 1.4.1 the passwords are saved encrypted. Thanks for reminding me to do that.
I have not yet tried this plugin, but I plan to use it. I always wanted my users to be able to protect their account, and this sounds epic! However, I'm guessing you simply store the passwords non encrypted, could I suggest that you add encryption so that not even people with access to the files can see the passwords?
@ryandylan
@ryandylan what are you trying to say?
👿 == 👿👿👿 👿👿👿 👿👿👿 👿👿👿 👿👿👿👿👿👿 👿👿👿 👿👿👿 👿👿👿 👿👿👿👿👿👿 👿👿👿 👿👿👿 👿👿👿 👿👿👿👿👿👿 👿👿👿 👿👿👿 👿👿👿 👿👿👿👿👿👿 👿👿👿 👿👿👿 👿👿👿 👿👿👿👿👿👿 👿👿👿 👿👿👿 👿👿👿 👿👿👿!!!!
@MMGames
@MMGames no there are no permissions needed. I can not understand why some people do not have the right to protect their account.
Are any permissions needed?