[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

    blinghung

    ? what do u mean
     
  3. Offline

    swedish2011

    bug
     
  4. Offline

    Naruchico

    okay so having a small issues that pops up after a reload of plugins and server restarts. when reload and try to login it gives me a red console message say internal error, and when I move it lights up my server console with errors.

    so far if I do a Stop and restart the server alls well, but since mine auto-restarts everyday its not good scaling through a million player move errors.

    not sure the exact cause but I think when the plugin reloads it crashes it.

    Using bucket 556

    and these plugins
    Vampire 1.4
    Autosave
    Autostop
    Borderguardlite
    heroicdeath
    Iconomy
    lockette
    loginmessage
    myhome
    nether
    portecoulissante
    precious stones
    realshop
    spawnr

    heh yeah so I have a few :D
     
  5. Offline

    djrazr

    Mhm.. i don't have NPCs.. ant this PlayerMove comes up here too.. as i said before..
    My Plugins:
    BorderGuardLite
    CraftBook /Pack
    CreativeStick
    CrowdControl
    DiscoSheep
    Dynmap
    Essentials
    Help
    HeroicDeath
    HeroicSneak
    iCHat
    iZone
    Minequery
    MultiVerse
    MusicCraft
    Netstats
    nSpleef
    Permissions
    PermissionsPlus
    SignColours
    SpawnControl
    War
    WorldEdit
    WorldGuard
     
  6. Offline

    fabe

    I contacted Fullwall about this problem and he wrote me, that the issue gets fixed in Citizens 1.07!
    Yeah. AuthMe can't be reloaded until runtime because it caches player resources! If you want reload the auth tables please use the /reloadauths command.
     
  7. Offline

    swedish2011


    :O​
    please help​

    PlayerLock.jar ?

    when does 1.07 :p

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

    1994mat

    Fix this, it fails when doing "reload" in console and it conflicts with NPCX plugin...
     
  9. Offline

    Penorzilla

    I have a very rare problem. Sometimes when a player is logged in, it will for some reason log them out and let them walk around and spam the console with "Player moved wrongly, expected this position got this one".

    You than have to re-login with the command.

    Using authme 0.61 and CB 556
     
  10. Offline

    The PC Tech Guy

    Maybe you could provide a bit of documentation on the config file? I don't know if the timeout for sessions is in seconds, server ticks, or minutes. I tried setting it to 20, assuming it was in seconds, but it appeared to be too short... (Update: seems like this doesn't work, it counts from initial login, not at leave time...)

    As for more configuration, maybe you could enable us to add our own colors for messages, like the section/color codes.
     
  11. Offline

    blinghung

    Post On My Thread to get help please
     
  12. Hi guy,

    I'm testing your plugin in my french server and everythings it's okay.
    But the MySQL support isn't great. I explain me:
    I've did a test, I've a member table (named 'membre' with columns id, pseudo and password). If I register my account on the game, everything it's ok. I can connect on my website with this account. But if I register me from the website, it's necessary to type /register password on the game. And in the database i've (for example):
    id: 1, pseudo: test, password: md5(test) (line when I register me from the website
    id: 2, pseudo: test2, password: md5(test2) (another player)
    id: 3, pseudo: test, password: md5(test) (line when i register me from the game because it's impossible to login)

    I'm french so sorry for the difficult to explain that. I hope help you in your development.
     
  13. Offline

    MrManiek

    Don't Work Download!!
    Please update!
     
  14. Offline

    Penorzilla

    I get spammed with these errors on v0.61 and CB 556

    Code:
    01:59:15 [SEVERE] Could not pass event ENTITY_DAMAGED 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.AuthMeEntityListener.onEntityDamage(AuthMeEntityListener.java:30)
        at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.java:356)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:441)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:748)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        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)
    
     
  15. Offline

    MrManiek

    Please give me bew link !
     
  16. Offline

    The PC Tech Guy

    Authme is working fine here, except for the slightly longer terrain download message and sessions not functioning properly. The way I believe he attempts to stop the falling damage is by placing the player inside the block below him. This can trigger some messages from the NoCheat plugin. Instead, I recommend making the player invincible for about 2 seconds or so (and make this configurable) after register/login.

    The terrain download message could be because of the cache system, since when switching from Authorize to Authme for a second time, it has taken much longer to download the terrain and I'm getting a "Can't Keep Up!" message. I'll try disabling it and seeing if it's any better.
     
  17. Offline

    fabe

    AuthMe can't be reloaded, because it's cache gets lost after reloading. It's possible to make it work without error messages, but then every player has to /login again. NPC plugins are a well known bug, but this is no issue in AuthMe, it's a mistake in the NPC plugins. They just emulate players, without opening a possiblity to check, if a player is human or a computer.
    Maybe you are also reloading the plugin, what deletes the integrated player cache.
    Your right, it's in seconds and the time difference between last login and the new connection. I will add a documented config in the next release. Also added color codes on the todo list.
    Solving this issue is very easy, just disable the cache in the DataController section in config.
    Just try it again.
     
  18. Offline

    The PC Tech Guy

    I believe the sessions should be between disconnect and new connection, not last login. Then, players who needed to reconnect because of a chunk error, or some players are invisible, will be able to without having to log back in again.
     
  19. Offline

    Penorzilla

    I do am not reloading the plugin at all.
     
  20. Offline

    The PC Tech Guy

    As for Citizens NPCs, I'm getting an error when attempting to attack an NPC. I don't know if I'm allowed to hit them in the first place, but I get an Entity_Damaged error when attempting to do so. Also, when on a glass block, I land on the block below it, and some of my users actually start suffocating and falling down. Maybe a way to disable this and have the old way of keeping users in one spot?

    Also, I'd like the sessions to be from time of disconnect to time of new connection.

    Update: I'd really like you to concentrate on user placement on login, as my users (including myself many times) login either suffocating in a block or plopped way down below in some dark cave.
     
  21. Offline

    Bilge

    Please make messages fully editable. Right now I can't disable messages or change their colour.

    Minor bug: unregistered players can see their inventory. Normally players spawn with a blank inventory but if they spawn with items they can drop them (but not pick them back up).
     
  22. Offline

    Black_Jack

    Can you add feature where you can choose, what command need to block or not. It useful for blocking all commands except smth. So, you can, for example, watch help. Also, it conflicts with WorldGuard GUI. GUI sent a command to server after you login to server. So, command cant pass and GUI becomes broken.
     
  23. Offline

    Trollkemada

    Hi,

    I have this error on my log: http://pastebin.com/0St9WuUH
    I have no insuess with the plugin, in fact, it works properly (except people can talk without login, and they shouldn't, but it isn't a big deal)
    I'm just worried about the errors.

    These are the plugins i use:
    -AuthMe
    -AutoSave
    -BigBrother
    -BorderGuardLite
    -CookieMonster
    -dynmap
    -HeroChat
    -HeroicDeath
    -iConomy
    -iSee
    -iConomyChestShop
    -LWC
    -MagicCarpet
    -MCDocs
    -Permissions
    -PermissionsPlus
    -SimpleBan
    -SignLift
    -SpawnControl
    -WorldEdit
    -WorldGuard

    And this is the info of Bukkit:

    This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)
    This server is also sporting some funky dev build of Bukkit!

    I hope you can help.

    Greetings.
     
  24. Offline

    GregRUS

    Trollkemada: Have the same errors on my server.
    Also after updating from previous version of authme and CB to #556 - when joining the server players are often stuck inside the block they stayed bedore disconnect.
    Many of them died and lost their inventories..

    UPD: Another serious issue!!! Not logged players can move.. and they have something like a god mode! Walkaround spawn is disabled in config!
     
  25. Offline

    fabe

    That was my own thinking mistake. :p This gets changed in next version.
    I successfully fixed the error messages, but I don't think, that AuthMe will allow you to attack the NPC.
    I forgot to add up 1 to the highest block coordinate, so sometimes the player got teleported into the highest block. Also fixed this.

    I gonna see what I can do against this...

    I saw in log, that AuthMe was unloaded. AuthMe can't be reloaded under server runtime yet!
     
  26. Offline

    GregRUS

    I always restart minecraft server after editing configs if plugin dont have reload command.
    Also I have RemoteToolkit [R10 a8.3] which I use to automatically restart the server every 6 hours... but it correctly unload plugins and then restart the server... so I don't have any idea why does it happens.. (
     
  27. Offline

    fabe

    That's no real restart. If you plan to have restarts, then make sure, that every player got kicked out, before AuthMe was reloaded.
     
  28. With build #600 (RB) this gives errors, update please :}
     
  29. Offline

    The PC Tech Guy

    And this is the reason why I stick with a previous RB for a few days, until most of my important plugins update. Not condemning you for your actions, nor your report (good thing that you are, in fact), but I wish Bukkit had some type of system where they notify the developers that this build will be the recommended build in x amount of days (like maybe 3-7).
    I do know it is possible to login on the block above where you are, especially on a laggy server. However, the problem is that the person is logging in below the block they were when they disconnected. Therefore, they are either plopped in some cave, or suffocate inside a block. This most commonly happens on glass, a transparent block.

    I don't know if you can attack Citizens NPCs, but if so, why is Authme preventing this? I have forced registration set to off... hopefully there will be a fix soon.
     
  30. Offline

    Black_Jack

    This would be great! Same feature have xAuth. The source is available, so you can look into this.
     
  31. Offline

    swedish2011

    NPCTrader.jar

    bug :/
     

Share This Page