AmkMcAuth
Update:
16-03-2022: AmkMcAuth-v1.5.3 version is out and available for download. If this version is not available on bukkit.org (due to some "technical difficulty" on bukkit.org), you can download it from: https://www.spigotmc.org/resources/amkmcauth.90252/ (Like other plugins).
This version is tested and running on a MC 1.18+ Spigot servers.
This plugin also protects (to some extend, its not a replacement for whitelist) your server against the "Operation Copenheimer" bots/griefers as it adds an extra login/password layer on your server so the bots mark your server as "protected" and not as "open".
See ChangeLog for information on Changes in this version.
Quick info.
AmkMcAuth is Minecraft Vs. 1.15+ , 1.16+, 1.17+, 1.18+, 1.19+ (and 1.20) ready. Works out of the box!
Preface:
AmkMcAuth (Big-Server edition) is a fork/continued RoyalAuth plugin (developed by jkcclemens). Jkcclemens was not updating his plugin and it stopped working at MC-Version 1.9+.
So i took the original sourcecode from jkcclemens and i fixed all the errors that occurred using it on MC 1.9+ servers creating a new version that i named AmkMcAuth.
But, all the credits go to jkcclemens who is the original creator of RoyalAuth i am using as the base for this plugin.
AmkMcAuth is an authentication plugin. It requires players to register their account with a password and use that password to login, adding another layer of security to any server. (If you are using email registration: the player has to register his email address after wich AmkMcAuth sends a random password to that email address so the player can login using that password, and possibly change it afterwards).
You can see it in action (and try it if you like) on my private AmkSoft Linux MineCraftServer
What options has the AmkMcAuth plugin.
This, the "Big-Server" version of AmkMcAuth, contains Email-Registration and MySQL support (larger plugin filesize). The AmkMcAuth(se) (Small-Server) Edition does not have MySQL Support and Email-registration (and the plugin file-size is much smaller).
So, if you have a small server or have a small playerbase then you can use the AmkMcAuth(se) version.
If you have a big server and/or you need MySQL support or Email registration, than you need this "Big-Server" version.
See the config.yml AmkMcAuth config.yml file in the Pages section. This file also has all the options documented.
First-time Install+Setup:
Just drop the plugin in your plugins folder and (re)start the server.
AmkMcAuth works default "out of the box", no special configuration needed, meaning: your players need to register a password (first time) and log in using that password.
Using the Admin commands you can manualy manage players.
Upgrading existing Setup:
You can just drop the plugin in your plugins folder and (re)start the server, but you have te check your existing config.yml and lang/en_us.properties files as there may be missing some entries (check the pages section for details) and you probably have to restart your server when you did some updates to those files.
As of version1.4.3 AmkMcAuth updates your config.yml in place if it finds missing config settings after backing up your previous config.yml file (this removes the comment lines from the config file).
If you are updating to an older version (pre 1.4.3) you have to rename your config.yml manualy, start the server and merge the old and new config.yml files.
Setup MySQL connection:
See the MySQL-SetUp file in the Pages section.
Commands and Permissions:
See the Commands and Permissons files in the Pages section.
Other Language Files:
Language files can be downloaded from the "Pages/lang" section.
SourceCode and Downloads:
The sourcecode can be viewed on github
Metrics:
AmkMcAuth uses bstats.org for collecting anonymous plugin stats:
- Total number of Servers running this plugin
- Total numer of players playing on servers
- Server Online/offline mode
- Mincraft server version
- Plugin version
- Server Core count
- System architecture
- Operating system
- Server location (country)
- Installed Java version
- AmkMcAuth Registered player count%100
- Plugin usage (Options used)
Notes on using AmkMcAuth e-mail:
This plugin uses the SMTP java library written by GermanCoding due its small size.
But, you cannot just use every mailserver, it has to be a SSL/TLS mailsever, like gmail.com .
Review/Usage:
If you see something weird to happen or you want something added, please let me know so i can help you. Also: if you use this plugin, please let me know and leave a 'like', much appreciated. You might even send me some buck's (Donate) so i can enjoy a coffee while updating this plugin :D .
Who donated to me: thank you. I appriciate it. The coffee tasted great.
In reply to Forge_User_08755611:
Hi,
As soon as i upgrade my server to mc 1.16 i will check the plugin. If it works i will update this page telling that its also running on mv 1.16+servers.
Are you getting any errors on 1.16 ?
If i look at the statistics this plugin is allready running on 35 or more mc 1.16.1 servers.
Just give it a try on your test server first to see if it works.
In reply to Forge_User_92118576:
I tried to run server 1.16.1 with this plugin and it worked.
In reply to Forge_User_08755611:
There is only a small bug but I am not sure if it is because of the spigot or because of plugins. When stoping server the error '[Server thread/ERROR]: java.lang.NullPointerException' will show up and the server won't close for a long time. The error also pop-ups without plugins, but with plugins it takes much longer to finally close.
In reply to Forge_User_08755611:
Hi,
Yes, i noticed this too. Even on a server without plugins this happens to me while stopping the server. So i think it is not releated to plugins.
There are NO plugings reported as i'm running the server with NO plugins.
Starting it this way (i have all my worlds placed in directory Worlds):
java -jar spigot.jar --world-container Worlds
does not give stop errors
In reply to Forge_User_08755611:
Thank you.
I tested it too on my own 1.16.1 server and it worked.
I updated then plugin description telling it is also 1.16 ready.
Why when I am opening chest I am getting message OpenInventoryEvent. Is it really hard to remove it when publishing compiled jar file? It's very annoying getting this message every time I open chest or something else.
In reply to Forge_User_08755611:
It is a debug line in the code i fogot to remove.
The new 1.4.3-BETA has this removed.
Version 1.4.2 is out and fixes these bugs and even has some new functionality.
Hello
Plugin works, as it should.
Except teleporting players back to their position in which the were while logging out.
Here is console feedback:
It's a huge problem and it really needs a fix.
Can you tell me what's wrong?
In reply to Forge_User_54877896:
Hi Forge_User_54877896,
Thanks for trying/using my plugin and sending me a message :D .
To bad you are getting an error, i'm sorry that this is happening. I see that you are using MC 1.15.2.
Are you using Spigot or Paper as the Minecraft server? (i see many Paper messages) .
I use only Spigot and i have not tested on Paper (if that is your Server).
I was planning on setting up a Paper server, but i have not yet found the time to do so.
On my 1.15.2 Spigot server i do not get this Java Error and, as far as i know, other Spigot user also do not get that error, so i hope it has something to do with Paper.
If not, than we have te investigate whats the differense are between my setup and your setup.
Can you msg me your server type?
Grtz
Martie
In reply to Forge_User_92118576:
Thank You for your reply!
Didn't expect to get it so fast! :D
Anyway, like You've said, I'm using Paper.
I'll try to make another instance of server running Spigot and I'll tell You if the bug still occurs.
Grtz
Hippie
EDIT:
I actually did copy the server and installed Spigot instead of Paper, and bug still occurs in the same way.
Tell me if You want some files, or logs, or actions. I can help if I can :)
Sncrl
Hippie
In reply to Forge_User_54877896:
Hi Hippie
Do you use some of anti cheat plugins ?
Is it possible for you to disable other plugins to find out witch one is causing the amkmcauth to missbehave?
If i know what is causing it, i can reproduce it on myserver and find a fix for it.
Btw. your amkmcauth version is based on the old mc 1.9 snapshot. My current/newest version i run on my server is based on the 1.15 snapshot. I had te change some code to make it work, but it was not in the login/command class.
In your stackdump i see an unhandled exeption. That should be easy to fix. I just have to find out why this is happening on your intallation
Grtz.
Martie
In reply to Forge_User_92118576:
I checked it out with another server instance. At first i tried to split to half and etc, but i quickly realized, that none of my plugins is causing the issue. (because it doesn't work even after removall of all the other plugins)
At first I thought, maybe clear the database? But then I thought that you might want to know what is causing the bug, so I did not do anything and I'm waiting for instructions rn.
PS. my server is running AmkMcAuth v-1.4.1 on Minecraft 1.15.2 Paper-143
PPS. there is another issue: when I set the kick message it doesn't format with colors
PPPS. if I could suggest a feature which you could add while fixing that, I would suggest simple invisibility option while players are loggin in. Alternative suggestion would be simple commands to set, that runs when player logs in and another when logs out. I would appreciate that.
Grtz.
Hippie
In reply to Forge_User_54877896:
Hippie found the cause of this problem. Hipstersavage, thanks for your time and effort to find it.
Amkmcauth tried to teleport the player to a deleted world where the player before the world got deleted was playing on. This is clearly a bug and i will fix this error in the next version.
Grtz.
Martie
Hello,
I just installed the plugin on a fresh 1.15 bukkit setup, everything works very well !
I have just a little problem, width the MySQL database, in particulary with the "LoggedIn" field of the user's table, I made a PHP script to list online/offline player, though this field could be usefull for this, but if a player close the Minecraft client directly without disconnect from the server, they still shown online even many hours after...
Is this a bug or I did not understood the database field correctly ?
Thank you.
In reply to Forge_User_29865788:
Hello mikeg1976,
Thank you for the message on the 1.15 spigot Install.
I did not yet use the 1.15 version myself, but i'm glad to hear that it is also working on 1.15.
The LoggedIn field is an internal field that AmkMcAuth uses to "monitor" the state of the player using the AmkMcAuth commands. If the player closes the connection AmkMcAuth does not see that. It uses the field to see if the player was "Logged-In" (correctly) before if the player reconnects..
So, if the player is a friend/special/has rights, was logged-in before and reconnects within the configurable time from the same client, the player does nog have to login again (grace period). This nice for players on a bad internet connection :D
So, you are correct in a way that it could be a "bug", but if i fix this, the "grace period option" will no longer work, it depends on it.
You can therefore not use that field in your scripting to see if a player is still logged-in.
i hope this answers your question.
Grtz.
Martie
In reply to Forge_User_92118576:
Hi and thank you for your answer.
I understand the grace period thing, thought it was an easy way to get online people on the website, but I'll find another way to do this.
Thanks for your work !
Mike
I have one problem.
Players were getting kicked for flying too long before they even login or register.
I allowed moving around for now to solve this, but still maybe simply disable movement and not place player back to spawn if he moved for some reason.
Also would be nice to allow players to skip registration/
In reply IvoryShots77998
Your solution to the kick on flying problem is the correct one. This is caused by your antigreafe antihack plugin. Thats why i added the allow walk around timer as this was a request from other players.
The skip reg i wil investigate
In reply to Forge_User_92118576: