Login System
Login-System
Was sind die Funktionen des Plugins?
Wenn ein Spieler den Server betritt, muss dieser sich entweder mit einem Passwort anmelden oder registrieren. Das angegebene Passwort wird in einer Datenbank gespeichert. Ein solches Plugin wird aus sicherheitstechnischen Gründen auf Offline-Servern stark empfehlenswert.
Wie funktioniert das Setup des Plugins?
Zuerst gibt man die Login-Daten zur Datenbank an (mysql.yml).
Anschließend setzt man die Locations, zu denen man teleportiert wird, wenn man sich anmeldet und wenn man sich angemeldet hat. Dies geht mit den Befehlen /setloginlocation und /setspawnlocation.
Befehle und Berechtigungen:
/register <Passwort> <Passwort> - Speichere das Passwort
/login <Passwort> - Anmelden
/changepassword <Altes Passwort> <Neues Passwort> <Neues Passwort> - Eigenes Passwort ändern
/setloginlocation - Speichere die Login-Location - login.setlocation
/setspawnlocation - Speichere die Spawn-Location - login.setlocation
Weitere Hinweise:
Für dieses Plugin wird eine MySQL-Datenbank benötigt.
Functions
When a player joins the server he is forced to register or log in using a password. The password is saved in a database. Using such a plugin on offline-servers is highly recommended.
Setup
Save the mysql login data (mysql.yml).
Save the login and spawn location using /setloginlocation and /setspawnlocation.
Commands and permissions
/register <Password> <Password> - Register and save the selected password
/login <Password> - Log in
/changepassword <Old Password> <New Password> <New Password> - Change own password
/setloginlocation - Save the login location - login.setlocation
/setspawnlocation - Save the spawn location - login.setlocation
Weitere Hinweise:
This plugin requires a MySQL database to save passwords.
org.bukkit.command.CommandException: Unhandled exception executing command 'login' in plugin LoginSystem v2.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:739) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1804) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1612) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:1029) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:1022) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1006) ~[patched_1.14.4.jar:git-Paper-243]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:929) ~[patched_1.14.4.jar:git-Paper-243]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: java.lang.IllegalArgumentException: Name cannot be null
at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.getWorld(CraftServer.java:1079) ~[patched_1.14.4.jar:git-Paper-243]
at org.bukkit.Bukkit.getWorld(Bukkit.java:525) ~[patched_1.14.4.jar:git-Paper-243]
at de.korzhorz.login.main.CMD_Login.onCommand(CMD_Login.java:37) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.14.4.jar:git-Paper-243]
Sorry, but your plugin doesn't work.
Errors occur when we try to register. Another serious mistake is not encrypting passwords to store in the database.
This plugin still needs a lot of tweaking to become a good plugin.
Keep working... Thanks!
Well, my plugins works, if it doesn't, you're using the wrong server jar file, believe me, I had that issue multiple times.
But I agree with you that the passwords aren't encrypted.
I was hoping if you knew what
[Server thread/INFO]: lolKEK404[/0:0:0:0:0:0:0:1:53075] logged in with entity id 4060 at ([world]-408.77198613721333, 75.0, 86.56036356568283)
[16:56:19] [Server thread/INFO]: lolKEK404 issued server command: /login Topcichon11999!
[16:56:19] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'login' in plugin LoginSystem v2.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:148) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:689) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1590) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1444) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(SourceFile:37) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(SourceFile:9) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:867) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:860) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:844) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:784) [craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
Caused by: java.lang.IllegalArgumentException: Name cannot be null
at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.getWorld(CraftServer.java:1005) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at org.bukkit.Bukkit.getWorld(Bukkit.java:500) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
at de.korzhorz.login.main.CMD_Login.onCommand(CMD_Login.java:37) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[craftbukkit-1.14.4-R0.1-SNAPSHOT.jar:git-Bukkit-368f4e9]
... 17 more
means....
Hello i have this issue
Hey,
I'm already about to fix that error.
According to the comment by "favicoh95" you can solve this problem by using /register <password> temporarly, but I haven't tested that so far.
It happens to me exactly, exactly... the same as "maelep_ttv".
But the solution is: /register <password>
And not /register <password> <password>
Hey,
At first I want to say sorry for my late answer.
I guess that there are problems with another plugin you installed on your server ("06.08 22:09:39 [Server] INFO Caused by: java.lang.IllegalArgumentException: Name cannot be null").
If you want more accurate information please write an e-mail to my support-mail ([email protected]) or join my Discord-server.