[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

    redpois0n

    BROKEN LINK! :( :mad:
     
  3. Offline

    Willobe

    I didnt read all the post but fig i would post here as i dont have time to read everything atm :p

    BUT

    players are able to Dupe items, if you log into the game but not into Authme, then open the inv and throw everything on the ground then log in Authme the items will be replaces in your inv but the ones on the ground are still there as well so you just pick them up
     
  4. While hitting a bot, I added it's name to "AllowPlayerUnrestrictedAccess" but it still prints the error.

    The bot is from "Citizens" ( http://forums.bukkit.org/threads/mech-citizens-v1-07i-npcs-for-bukkit-traders-coming-soon-740.7173/ ) plugin, it has an API for detecting bots, you should add it :p

     
  5. Offline

    Kevin Meister

    Hey, when trying to register an account players always get the message "File not found". It is the same problem with flatfile and MySQL.
     
  6. Offline

    Donny

    Plugins dead?
     
  7. Plugin works just fine, I tested it with #740 and I'm using it now on #762.
     
  8. Offline

    Ben1002

    Got a habbit of moving my players under bedrock with a message "Moved to fast (hack)?"
     
  9. Offline

    pomo4ka

    Code:
    [SEVERE] Could not pass event ENTITY_DAMAGE to AuthMe
    java.lang.NullPointerException
        at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCache.java:68)
        at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCache.java:76)
        at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
        at com.bukkit.fabe.AuthMe.Listener.AuthMeEntityListener.onEntityDamage(AuthMeEntityListener.java:30)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:518)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:522)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:815)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-10 17:06:54 [SEVERE] Could not pass event ENTITY_DAMAGE to AuthMe
    java.lang.NullPointerException
        at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCache.java:68)
        at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCache.java:76)
        at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
        at com.bukkit.fabe.AuthMe.Listener.AuthMeEntityListener.onEntityDamage(AuthMeEntityListener.java:30)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:518)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:410)
        at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:156)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:532)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:815)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    An error occurred while reconnecting to the server. Observed such errors in Craftbukkit # 740 - 766.
     
  10. Offline

    enelar

    +1 with event exeptions
     
  11. Offline

    strmesko

    I found a bug, where chunk cannot render and you fall in abyss. After login you will die and your loot is disappear.
    Also i have some problems with "Sitizens" too.
    Craftbukkit #740
     
  12. Offline

    Asura23

    Hi,..
    would be possible to add function to lock account to IP only for selected users?
    great would be commands:
    /lockip [password]
    /unlockip [password]
     
  13. Offline

    darkwarriors

    still have this error..
    Code:
    00:25:55 [SEVERE] Could not pass event PLAYER_MOVE to AuthMe
    java.lang.NullPointerException
            at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCache.java:68)
            at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCache.java:76)
            at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
            at com.bukkit.fabe.AuthMe.Listener.AuthMePlayerListener.onPlayerMove(AuthMePlayerListener.java:190)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:268)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    cb 760
     
  14. Offline

    kapein

    For everyone who wants to use MySQL
    u must add a password in the database
    the plugin doesnt accept no password (glitch/bug)
    i also get the ENTITY_DAMAGE error probly has to do with citizens

    to use this with essentials you have to make it 766 untill then the worlds arent safe. ty for ur help :p

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

    samixchoumi

    When the plugin was Ok for Bukkit 766 ?
     
  16. Offline

    min

    java.lang.NullPointerException
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCache.java:68)
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCache.java:76)
    at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
    at com.bukkit.fabe.AuthMe.Listener.AuthMePlayerListener.onPlayerInteract(AuthMePlayerListener.java:300)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:280)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:64)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:438)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  17. Offline

    rad1game

    Plugin dead? Got a lot of errors on #766. Fix it please.
     
  18. Offline

    The PC Tech Guy

    No errors for me on 766.
    @fabe
    I do get a "Can't Keep up" instantly when someone leaves (at least when I kick myself). It could not be related to your plugin... Just letting you know... plus the terrain download message does take a few seconds usually...
     
  19. Offline

    rad1game

    http://pastebin.com/ZhC7dZ6A

    Need more? Or you trust me?
     
  20. Offline

    Bhikku

    what a fuck, i dont know why but i have a lot of "cant keep up" messages, on 766.

    why people start making plugins when 2 weeks later its dead ... zomg, so xauth here i come :/
     
  21. Offline

    The PC Tech Guy

    Did you try a fresh file? I can't say much, because it's working for me... Although it looks like you're attempting to pick up an item when not logged in, so I could test that. But not now.
     
  22. Offline

    samixchoumi

    The plugin work on 766 or not ????
     
  23. Offline

    Pomme72

    OH PHOQUE,

    Big problem ! My server crash all day about this

    Show Spoiler
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:657)
    Show Spoiler
    Show Spoiler
    Show Spoiler

    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
    at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
    at net.minecraft.server.EntityCreeper.p_(EntityCreeper.java:57)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1007)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5
    2)
    at net.minecraft.server.World.playerJoinedWorld(World.java:989)
    at net.minecraft.server.World.cleanUp(World.java:966)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:367)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    21:36:14 [SEVERE] Could not pass event ENTITY_TARGET to AuthMe
    java.lang.NullPointerException
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCac
    he.java:68)
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCa
    che.java:76)
    at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
    at com.bukkit.fabe.AuthMe.Listener.AuthMeEntityListener.onEntityTarget(A
    uthMeEntityListener.java:47)
    at org.bukkit.plugin.java.JavaPluginLoader$49.execute(JavaPluginLoader.j
    ava:504)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:35)
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:657)
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    at net.minecraft.server.EntitySkeleton.u(EntitySkeleton.java:54)
    at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
    at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1007)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5
    2)
    at net.minecraft.server.World.playerJoinedWorld(World.java:989)
    at net.minecraft.server.World.cleanUp(World.java:966)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:367)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    21:36:14 [SEVERE] Could not pass event ENTITY_TARGET to AuthMe
    java.lang.NullPointerException
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCac
    he.java:68)
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCa
    che.java:76)
    at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
    at com.bukkit.fabe.AuthMe.Listener.AuthMeEntityListener.onEntityTarget(A
    uthMeEntityListener.java:47)
    at org.bukkit.plugin.java.JavaPluginLoader$49.execute(JavaPluginLoader.j
    ava:504)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:35)
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:657)
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    at net.minecraft.server.EntitySkeleton.u(EntitySkeleton.java:54)
    at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
    at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1007)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5
    2)
    at net.minecraft.server.World.playerJoinedWorld(World.java:989)
    at net.minecraft.server.World.cleanUp(World.java:966)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:367)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    21:36:14 [SEVERE] Could not pass event ENTITY_TARGET to AuthMe
    java.lang.NullPointerException
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.getLastAlert(PlayerCac
    he.java:68)
    at com.bukkit.fabe.AuthMe.PlayerCache.PlayerCache.isAlertNeeded(PlayerCa
    che.java:76)
    at com.bukkit.fabe.AuthMe.AuthMe.checkAuth(AuthMe.java:611)
    at com.bukkit.fabe.AuthMe.Listener.AuthMeEntityListener.onEntityTarget(A
    uthMeEntityListener.java:47)
    at org.bukkit.plugin.java.JavaPluginLoader$49.execute(JavaPluginLoader.j
    ava:504)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:35)
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:657)
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
    at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
    at net.minecraft.server.EntityCreeper.p_(EntityCreeper.java:57)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1007)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:5
    2)
    at net.minecraft.server.World.playerJoinedWorld(World.java:989)
    at net.minecraft.server.World.cleanUp(World.java:966)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:367)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)


    Version of CB : 733 !

    HELP PLEASE ! :(
     
  24. Offline

    The PC Tech Guy

    Use
    Code:
    [spoiler]Error messages here[/spoiler]
    for long error messages. And a CB version would be nice too, at the very least. See here for more.
     
  25. Offline

    GossamerSolid

    Don't know what you guys are all complaining about. I'm using 766 and it works quite fine on my server.

    Suggestion for Plugin Maker: Please make a permissions node for admins to create a registration such as /register USERNAME PASSWORD.

    My server has public registrations off so it's only people we know and when I try to insert a new record into the table, I incremented the ID myself, wrote the username exactly how it appeared and then MD5 encrypted the password and when I tried to log on it just kept saying that I wasn't registered. For the record I only use MySQL and it works fine for the other accounts already authenticated back when /register was enabled.
     
  26. Offline

    DerKB

    Same here for the Citizens Plugin, after i installed it your plugin gave out errors.
    I guess it has something to do how citizens stores the color code for the names, tried adding the color code to the list in the config of your plugin but that caused a bad config.
    So would be nice to have this compatible with citizens, as written above they have implemented a way to get the state of an NPC.

    Regards
    DerKB
     
  27. For me, the plugin only prints errors if citizens get damage.
     
  28. Offline

    nanashiRei

    There is a security flaw with this :S sometimes users are not asked for a password when connecting and then they can use anything the faked username normally has permissions to. I don't know why but here is my config:

    Code:
    ############################################################
    # +------------------------------------------------------+ #
    # |                  DataController                      | #
    # +------------------------------------------------------+ #
    ############################################################
    DataController:
        # Cache saves registration details (username, password)
        # Change it to false, if you want edit the datasource under runtime
        # Otherwise let it to true!
        CacheEnabled: false
        # Possible datasources are 'flatfile' or 'mysql'
        Datasource: mysql
    ############################################################
    # +------------------------------------------------------+ #
    # |                       Misc                           | #
    # +------------------------------------------------------+ #
    ############################################################
    Misc:
        # Set it to false, if you want let the player decide, if he should register or not
        ForceRegistration: false
        # What has to be done, if the player typed a wrong password?
        # Kick him (true) or only warn him with a simple chat message (false)
        KickOnWrongPassword: true
        # Kick a non-loggedin player after he has reached a certain timeout (in seconds)
        # To disable this, set it to 0
        LoginTimeout: 90
        # The intervall between Alert.Login and Alert.Registration messages (in seconds)
        AlertInterval: 5
        # What should we allow unregistered players?
        AllowNonRegistered:
            Chat: true
            # Following commands are allowed to use (and every subcommand!)
            # Be warned: Additionally every subcommand gets allowed, e.g. '/uptime today'
            Commands:
            - uptime
            WalkAroundSpawn:
                Enabled: false
                Radius: 20
        # What should we allow players, that are not logged in?
        AllowNonLoggedIn:
            # Following commands are allowed to use (and every subcommand!)
            # Be warned: Additionally every subcommand gets allowed, e.g. '/uptime today'
            Commands:
            - uptime
        # Following players get unrestricted access without the force to log in
        # Use this function, if you use plugin, that creates bots (NPCs)!
        AllowPlayerUnrestrictedAccess: []
    ############################################################
    # +------------------------------------------------------+ #
    # |              Playername Restrictions                 | #
    # +------------------------------------------------------+ #
    ############################################################
    PlayerNameRestriction:
        # The name of a player should have the following maximum and minimum length
        PlayerNameMaxLength: 20
        PlayerNameMinLength: 3
        # The characters in the name can be restricted by RegEx
        # For more informatiom about RegEx visit
        # http://en.wikipedia.org/wiki/Regular_expression#POSIX_character_classes
        PlayerNameRegex: '[a-zA-Z0-9_?]*'
    ############################################################
    # +------------------------------------------------------+ #
    # |                   Login Sessions                     | #
    # +------------------------------------------------------+ #
    ############################################################
    LoginSessions:
        # This function automatically logs players in, if they were already logged
        # in before their last disconnect
        Enabled: true
        # Maximum timeout between last logout and new connection (in seconds)
        MaximalTimePeriod: 20
        # Be warned: Only disable this, if you know what you are doing!
        # Disabling this makes AuthMe not comparing old and new IPs and maybe
        # grants access to name spoofers (in case you are on offline-mode)
        IPCheckEnabled: true
    ############################################################
    # +------------------------------------------------------+ #
    # |                     Commands                         | #
    # +------------------------------------------------------+ #
    ############################################################
    Commands:
        Users:
            ChangePasswordEnabled: true
            RegisterEnabled: false
            UnregisterEnabled: false
            LoginEnabled: true
        Ops:
            ReloadAuthsEnabled: true
            ResetAuthEnabled: true
    ############################################################
    # +------------------------------------------------------+ #
    # |                  MySQL Settings                      | #
    # +------------------------------------------------------+ #
    ############################################################
    MySQL:
        # Connection details
        Connection:
            Host: ** you wish **
            Port: 3306
            Database: minecraft
            Username: ** really now **
            Password: ** i am not an idiot :D **
        # Settings for a custom user table
        # Do not change this, if you don't have any scripts reqiring this
        Custom:
            TableName: authme
            ColumnUsername: username
            ColumnPassword: password
            # Custom information, that a player has to type on /register command
            # This function is only available for MySQL as datasource!
            # Make sure that you have a column with the right name in your database!
            # The information gets checked, if it complies to the given RegEx string
            # If the check was successfull, the information get stored in the respective column
            # A line must be built up like following:
            #   columnname: 'regexstring'
            # For good RegEx strings visit http://regexlib.com
            # If you are still unsure, check the given example below (email)
            RegistrationInfo:
    #            email: '^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$'
    
     
  29. Offline

    The PC Tech Guy

    Never happened to me, but my best guess is to disable sessions, or tell your admins to use /logout before disconnecting.
    @fabe can you add an option to automatically kick a player if they used the /logout command?
     
  30. Offline

    nanashiRei

    Naw we tested it out and it keeps doing this. We switched to AuthDB which for now seems far more stable. (And supports SHA1 + SHA512!) :p

    cya
     
  31. Offline

    Kaosvf

    Hi,
    I have chosed "flat file" mode but now I would change in "mysql", how can I update all players already registered in mysql database?
    Thank you
     

Share This Page