[INACTIVE] AuthMe v0.72 - High Performance Authorization plugin - MySQL/flatfile support[740]

Discussion in 'Inactive/Unsupported Plugins' started by fabe, Jan 22, 2011.

  1. Offline

    fabe

    Hello guys,

    the last days I have made an alternative authorization plugin for Bukkit, called AuthMe.
    AuthMe prevents people, which aren't logged in, from doing stuff like placing blocks, moving, typing commands or seeing the inventory of the current player.
    The possibility to set up name spoof protection kicks players with uncommon long or short playernames before they could actually join.
    Login Sessions make it possible that you don't have to login within a given time period.

    Each command and every setting can be enabled or disabled by a easy structured config file.
    And if you don't prefer English or don't like my translations ;) you can easily edit nearly every message sent by AuthMe!

    Nearly every version gots tested for stability and lag-ness on my 50+ player server.

    In the next coming days I will add some new features, just make some suggestions!

    Features:
    • Following protections are activated, when a player is not logged in:
      • Movement protection
      • Block placement & damage protection
      • Inventory protection
      • Interaction protection (blocks usage of doors, chests)
      • Health protection
      • Commands & chat protection
    • Playername spoof protection
    • Protection against "Logged in from another location" messages
    • Login sessions
    • Editable settings & messages
    • MySQL and flatfile support
    • Custom MySQL tables/columns (useable for forums, other scripts)
    • Two data caches for best performance
    Commands:
    • Player side:
      • /register <password>
      • /login <password> -Alias: /l <password>
      • /logout
      • /changepassword <oldpassword> <newpassword>
      • /unregister <password>
    • Op and Console (without / ) side:
      • /authme reloadconfig
      • /authme reloadcache
      • /authme toggleregs
      • /authme deleteauth <playername>
    Installation:
    1. Download it.
    2. Put the downloaded jar file into your /plugins folder
    3. Run the server to generate configs.
    4. Edit the config on any way you wish.
    5. Following datasources are possible: flatfile or mysql
    6. Restart the server.
    7. If you have choosen MySQL as datasource, your table will be generated automatically, if it doesn't exist yet
    8. Done!
    Version History:

    0.72
    o Fixed issues occuring on CB #670
    o Added /logout command
    o Added the possibility to disable joining of players that aren't registered

    0.71
    o Cleaned up player cache code (performance!)
    o Changed the way of fixing the continuous player falling
    o Fixed BlockIgnite error messages
    o Fixed door/chest protection
    o It's now impossible to register/update/remove an account when updating the datasource had failed
    o Added editable messages
    o Default colors of messages are now stored in message file and can easily be changed

    Older versions (open)

    0.7
    o Compatibility with CraftBukkit version 602
    o Op commands are now included in a general /authme command
    o Possibility to reload config under runtime
    o Fixed errors on reloading the plugin
    o Prevention against "Logged in from another location" messages
    o Fixed NullPointerException Errors
    o Possibility to add NPC names to config (to add compatibilty with NPC plugins)
    o Registrations can now be toggled by Ops
    o More debug messages on MySQL errors
    o Player sessions will now be created on player disconnect
    o Possibility to allow commands for non-registered/non-loggedin players
    o Custom fields on /register when using MySQL as datasource e.g. E-Mail
    o Kick player after x seconds, if he is not logged in
    o Op-Commands are now accessable via console
    o Commented config
    o Fixed players stuck in blocks on join
    o A lot more minor bug fixes
    0.61
    o Fixed MySQL loading users wrongly and making them unregistered
    o Fixed continuously falling players on non-authenticated state
    0.6
    o Whole new cache system for online players and offline players (performance boost!)
    o New datasource: MySQL support (beta)
    o MySQL can use custom tables, colums
    o Log messages on command/login/registration/session-login
    o Non-authenticated player can't use doors, chests or get drops
    o Fixed surviving bug
    o Fixed player health protection
    o Alias for /login command: /l <password>
    o Settable interval between alerts
    o Settable kick on wrong password
    o Settings for unregistered players (allow chat, allow walk around spawn)
    o Possibility to disable cache (useful for live-editing the datasource)
    o CraftBukkitUpToDate support (soon!)
    0.5
    o Editable messages
    o Added /changepassword command
    o Added /unregister command
    o Added /resetauth command
    o Added /reloadauths command
    o Added option to disable forced registration
    0.42pre (unreleased)
    o Login/Register commands don't show up on console anymore
    o Waaay better performance with 50+ players online
    o Login sessions
    o Config settings
    0.41pre
    o Fixed incompatibility with plugins that use the onPlayerMove Event
    o Better performance
    0.40pre
    o Location of auth.db has changed
    o New Authentication Cache (Maybe fixes memory issues)
    o Fixed possible missing inventories after server restarts
    0.3
    o Compatibility with newer Bukkit versions
    o Fixed possible item duplication bug
    o Fixed command protection
    0.2
    o Fixed some error messages, when a player is leaving
    0.1
    o Release



    If you like my plugin and want support my work, fell free to donate. Thanks.
    [​IMG]

    Download AuthMe V0.72
    Help developing AuthMe via GitHub
     
    Fuppiz, tombik, sbeex and 6 others like this.
  2. Offline

    IOn Vash

    not working with latest recommended build 602 or 600
     
  3. Offline

    Clueless

    Hi I use this on my server or well I will as soon as I finish making it... Anyway I found a bug. If the server is running in offline mode and a player logs in under the owners/admins name they can still do commands. They cant chat/move but they can still issue commands like /give or /ban or /op and anything else. I found this useful when a griefer attacked the sever I was on and I logged in under the owners name to get rid of him but if people start to login and abuse the power by spawning things and banning people then that will be really horrible for a server so I was wondering if you could remove the commands function while not logged in. Maybe something like if typed / then a msg would popup saying sorry no commands untill you are logged in. Thanks

    Edit: Oh I just realized that you have to type /login to actually login and that is a command so there isn't really a way around it but if you can somehow go around that and make all commands except /login and /register impossible to execute then I would really appreciate it.
     
  4. Offline

    UnderdogMac

    doesnt work with bukkit 602 :S:S
     
  5. Offline

    The PC Tech Guy

    IDK what CB build you are using, but this works in CB 556, and hasn't been updated since... but be patient, he'll update it, otherwise for now look at xAuth or Authorize
     
  6. great plugin! But when I try to change the messages in the "messages.yml" the plugin doesn't work anymore!
    But why? Musn't I change this file?

    greetings
    Chriss
     
  7. Offline

    r0w

    Hi,

    I'm having a very special problem sometimes, I don't know how to reproduce it. But here it's :

    Sometimes when I connect to the server with a user already registered but I don't login, it asks me to register, so I can register one more time and I'll be able to takeover the account.

    I'm using MySQL and cache disabled, and when I look in the MySQL, i've 2 entries for the same user.

    So, I changed username to be Unique in MySQL structure, when the problem will come back, i'll try if I can takeover the account or not.

    Yeah, I know this post is quite useless, but maybe, someone of you, already had this problem too.

    CB 556
     
  8. Offline

    swedish2011

    Code:
    2011-03-31 09:05:38 [INFO] Disconnecting /74.207.241.234:42637: Took too long to log in
    2011-03-31 09:05:39 [SEVERE] java.net.SocketException: Connection reset
    2011-03-31 09:05:39 [SEVERE]    at java.net.SocketInputStream.read(Unknown Source)
    2011-03-31 09:05:39 [SEVERE]    at java.net.SocketInputStream.read(Unknown Source)
    2011-03-31 09:05:39 [SEVERE]    at java.io.FilterInputStream.read(Unknown Source)
    2011-03-31 09:05:39 [SEVERE]    at net.minecraft.server.Packet.b(SourceFile:113)
    2011-03-31 09:05:39 [SEVERE]    at net.minecraft.server.NetworkManager.f(SourceFile:155)
    2011-03-31 09:05:39 [SEVERE]    at net.minecraft.server.NetworkManager.c(SourceFile:9)
    2011-03-31 09:05:39 [SEVERE]    at net.minecraft.server.NetworkReaderThread.run(SourceFile:62)
    bug

    Code:
    2011-03-31 15:56:28 [SEVERE] Could not pass event BLOCK_BREAK to AuthMe
    java.lang.NullPointerException
        at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isPlayerAuthenticated(PlayerCache.java:59)
        at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:426)
        at com.bukkit.fabe.AuthMe.Listener.AuthMeBlockListener.onBlockBreak(AuthMeBlockListener.java:47)
        at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.java:309)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:112)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:59)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:360)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    not npc :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  9. Offline

    fabe

    Finally AuthMe version 0.7 with lot more features and bugfixes is out!

    AuthMe 0.7 works on this version.
    This function is already included and works on my tested servers!
    If you use special characters, make sure that you use inverted commas on the beginning and the end of the message! For example: Message: 'My message'
    Maybe AuthMe looses the connection to MySQL and after that it can't reconnect. So it fails.
     
    unenergizer likes this.
  10. Offline

    KazukiMutou

    I'm getting errors on CB #612. I assume it's because of the 1.4 update.

    Code:
    01:23:13 [SEVERE] Could not pass event BLOCK_IGNITE to AuthMe
    java.lang.NullPointerException
            at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:567)
            at com.bukkit.fabe.AuthMe.Listener.AuthMeBlockListener.onBlockIgnite(AuthMeBlockListener.java:33)
            at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.java:324)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at net.minecraft.server.BlockStationary.a(BlockStationary.java:65)
            at net.minecraft.server.World.i(World.java:1475)
            at net.minecraft.server.World.h(World.java:1406)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:359)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    Any help with this?
     
  11. Offline

    unenergizer

    As soon as you release a stable version, Notch releases 1.4 a few hours later. Bad luck I suppose. Anyway I appreciate your time and effort on upgrading this plugin!

    I tip my hat for you!

    (awaits 1.4 update) :D
     
  12. Offline

    EniGmA1987

    Getting this error on my server. Latest recommended of Craftbukkit and AuthMe:

    [​IMG]



    Same as the guy a couple posts up it seems. I am not trying to light anything on fire either, although we have a few blocks on fire nearby.
     
  13. Offline

    oleerik

    Confirmed working on 1.4
    But, I cant get it to connect to the mysql again. It just goes straight to flatfile. Really hope you find a solution for this.
     
  14. Offline

    fabe

    Because of the good programming design of Bukkit, there should be no changes needed in plugins, if minecraft gets a update.

    I will look for this.
    Maybe you are using a config file from old versions. Please delete your old config and let generate a new one. There were too much changes since last version.
     
  15. Offline

    G!zmo-rus

    that fix is really needed
     
  16. Offline

    unenergizer

    Code:
    2011-04-01 15:43:51 [INFO] [AuthMe] Player unenergizer logged in!
    2011-04-01 15:44:09 [SEVERE] Could not pass event BLOCK_IGNITE to AuthMe
    java.lang.NullPointerException
    at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:567)
    at com.bukkit.fabe.AuthMe.Listener.AuthMeBlockListener.onBlockIgnite(AuthMeBlockListener.java:33)
    at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.java:324)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.BlockStationary.a(BlockStationary.java:65)
    at net.minecraft.server.World.i(World.java:1475)
    at net.minecraft.server.World.h(World.java:1406)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:359)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    :(
     
  17. Offline

    fabe

    Fixed in version 0.71!
     
    unenergizer likes this.
  18. Offline

    unenergizer

    THANK YOU THANK YOU THANK YOU!!!

    I uploaded and it redownloaded all the files for the "AuthMe" folder. I then uploaded the "auths.db" over the newly generated one. Now I am getting theses errors:

    Code:
    2011-04-02 03:35:25 [INFO] [AuthMe] Player Neutronix logged in!
    2011-04-02 03:35:31 [INFO] [AuthMe] Player unenergizer logged in!
    2011-04-02 03:36:12 [INFO] <unenergizer> authme plugin was updated. needed to add it back ;)
    2011-04-02 03:36:31 [INFO] <Neutronix> ah
    2011-04-02 03:37:20 [SEVERE] java.net.SocketException: Connection reset
    2011-04-02 03:37:20 [SEVERE] at java.net.SocketInputStream.read(SocketInputStream.java:185)
    2011-04-02 03:37:20 [SEVERE] at java.net.SocketInputStream.read(SocketInputStream.java:199)
    2011-04-02 03:37:20 [SEVERE] at java.io.FilterInputStream.read(FilterInputStream.java:83)
    2011-04-02 03:37:20 [SEVERE] at net.minecraft.server.Packet.b(Packet.java:73)
    2011-04-02 03:37:20 [SEVERE] at net.minecraft.server.NetworkManager.f(NetworkManager.java:130)
    2011-04-02 03:37:20 [SEVERE] at net.minecraft.server.NetworkManager.c(NetworkManager.java:229)
    2011-04-02 03:37:20 [SEVERE] at net.minecraft.server.NetworkReaderThread.run(SourceFile:68)
    2011-04-02 03:37:20 [INFO] unenergizer lost connection: disconnect.genericReason
    :(
     
  19. Offline

    dwarmia

    this works great on latest* bukkit. 1.4.... thanks. realy thanks.
     
  20. Offline

    fabe

    Not every error in server is harmful! Even this is no AuthMe issue, this is minecraft itselve. It warns you, when a connection breaks. This can happen if you don't use the Disconnect button in minecraft, but press the X on the upper right corner. ;)
     
    unenergizer likes this.
  21. Offline

    swedish2011

    [WARNING]

    This plugin allows it to be error.

    [ERROR]

    MinecartMania

    GodMode

    ++++ = error = AuthMe

    AuthMe = buggar = ;(

    help
     
  22. Offline

    djrazr

    Ja des stimmt... is noch buggy.. schade.. ich mag das plugin ... :S
     
  23. Offline

    The PC Tech Guy

    No errors, just the register/login commands don't work at all in CB 617... Tried checking for conflicts, but I can't find any. Hope this gets fixed soon, meanwhile I'll take a look at xauth and give it a spin.
     
  24. Offline

    unenergizer

    Dislike. AuthMe is the best. :)
     
  25. Offline

    The PC Tech Guy

    Um... you should REALLY read posts before telling me that you dislike Xauth. I have commented in the earlier days of this plugin. Also, as I said, I will return when it's been fixed. I indeed favor AuthMe over Xauth.

    So, I've found out that Xauth doesn't work either. That means something is sucking up the /register and /login commands, and I have yet to figure out what it is.

    UPDATE: I don't know what's going on, but I ran my server with JUST AuthMe and CB 617 and it STILL doesn't work. Now I'm befuddled.
     
  26. Offline

    swedish2011

    :pAuthorize is best :p not: bug, error ,CB617 :'(
     
  27. Offline

    The PC Tech Guy

    Okay, I don't know how this favortism war came out, but anyways, I found out my problem was due to an unofficial build of SimpleServer (a server wrapper), and it blocked ALL commands, including OP commands. I think your plugin will work now.
     
  28. Offline

    nanashiRei

    Nice. Would it be possible to add an option, for my paranoia, to choose sha1 encryption over md5?
     
  29. Offline

    bakon balázs

    working great on cb 617
    and i cant login on same name!! BIG LIKE and Thanks : >
     
  30. Offline

    Clueless

    Any idea why this pops up in my console window every few minuits?
    Code:
    17:34:39 [SEVERE] Could not pass event BLOCK_IGNITE to AuthMe
    java.lang.NullPointerException
        at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:567)
        at com.bukkit.fabe.AuthMe.Listener.AuthMeBlockListener.onBlockIgnite(AuthMeBlockListener.java:33)
        at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.java:327)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.BlockStationary.a(BlockStationary.java:65)
        at net.minecraft.server.World.i(World.java:1475)
        at net.minecraft.server.World.h(World.java:1406)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:359)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    I came to authme because it said authme but could it be from another plugin?
     
  31. Offline

    fabe

    Help me by posting more detailed error logs.
    Inwiefern?
    Sure, I will add some new encryptions in the next versions.
    Just update to the recent version 0.71.
     

Share This Page