Inactive [SEC] xAuth v2.0.10 - Extra Authentication [1.2.5-R1.3+]

Discussion in 'Inactive/Unsupported Plugins' started by CypherX, Mar 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    CypherX

    xAuth v2.0.10 - (CraftBukkit build: [1.2.5-R1.3+])
    Download v2.0.10

    lycano is taking over the development of xAuth as I no longer have the time nor the will to continue working on it. Please see the BukkitDev page: http://dev.bukkit.org/server-mods/xauth/

    Thanks to everyone who has showed support for me and xAuth over the past 17 months. It's been 'fun'. If for any reason you need to contact me, stop by my IRC channel (irc.rizon.net #LoveDespite) or toss me a message at http://love-despite.com/forum. Until we meet again, stay gold. Bang.

    ------------------------------------------------------------------​

    xAuth is a plugin designed with a single task in mind: protect a server and its players while running in offline-mode. The basic idea of this protection is allowing players to register an account based on their player name and a supplied password. When a registered player connects to the server, that player will be prompted to authenticate his or herself by logging in. If and only if a valid password is supplied, they will regain full control of their account until their session expires.


    Features
    • Before registering/logging in, players cannot:
      • Chat, execute commands, interact with objects (levers, chests, etc.), move, or pickup items.
      • Break or place blocks
      • Receive or give damage, be targeted (followed) by hostile mobs
    • Inventory and location protection
    • In-depth setting and message configuration
    • Persistent login sessions through server restarts
    • Player name filter and password complexity configuration
    • Kick non-logged in (but registered) players after a configurable amount of time
    • Bukkit Permissions support
    • Kick or temporarily lockout the IP address of a player who fails to log in after a configurable amount of tries
    • Custom, highly secure password hashing
    • H2 and MySQL support
    • Authentication over URL (AuthURL) allows for connection to forum or website databases
    Changelog (click for full changelog)
    • Version 2.0.10
      • [Fixed] Exploit to completely bypass login system.
      • [Fixed] xAuth commands not working with Rcon
      • [Fixed] Exploiting login system to avoid fire & drowning damage.
      • [Fixed] NPE caused by player connecting & disconnecting during same server tick.
      • [Fixed] 'Table "SESSIONS" not found' error when a player uses /logout while session length is set to zero.
      • [Fixed] Exploiting location protection after dieing to return to the spot of death.
    • Version 2.0.9
      • Added several reverse single session configuration options.
      • Fixed registration.forced: false not working.
      • Updated version check and H2 download links.
    xAuth Importer
    xAuth Importer is a tool used to import accounts from previous versions of xAuth as well as other authentication plugins. Click here for more information.
     
  2. Offline

    rostex

    When player turn on creative mode and log out anyone who entry from this player can drop items in inventory (creative mode inventory). Its a big problem
     
  3. Offline

    iburnbud

    hi

    nice plug.

    im having some troubles.

    i downloaded this initially, and lost my enchantments, than promptly uninstalled it.

    after searching, i reinstalled it after downloading a "fixed" version from the russian site i found linked in this thread (http://minecraft.pvp.gs/threads/xauth-enchant-fix-cb-1527.868/).

    the fixed version seems to be the same as the original, however he tells you to add the enchantment text field to the inventory table.

    ---

    i downloaded the plugin, than opened the xauth.jar to the sql\h2 folder and edited in the field to the file 0001_original_tables.sql. i know it says sql, but this file is used in both the sql and h2 db setups apparently.

    but im still losing enchantments on logoff from the armor slots. things in quickbar inventory seem to stay.

    been watching and reading through this thread, but cant seem to fix my issue by editing in this field. am i missing something?

    for more info this is what my edit looked like:

    Code:
    CREATE TABLE IF NOT EXISTS `{TABLE_INVENTORY}` (
        `playername` VARCHAR(255) NOT NULL,
        `itemid` VARCHAR NOT NULL,
        `amount` VARCHAR NOT NULL,
        `durability` VARCHAR NOT NULL,
        `enchantments` VARCHAR NOT NULL,
        PRIMARY KEY (`playername`)
    );
    
     
  4. Offline

    Korrosive

    Please Mods, mark this plugin as Inactive :/
     
  5. Offline

    Zorkin3

    Please update this plugin to the latest recommended build, it really is the most useful plugin i use on my server.
     
  6. Offline

    Benickes

    logging in causes the loss of enchantments right now also.
     
  7. Offline

    _Robert

    I discovered that this happens when you have CommandBook activacted (maybye the exact spawn feature?). If you remove it xAuth works fine :).

    Edit: Yes, it's the exact spawn feature, set it to false and it should work fine :D
     
  8. Offline

    vicente947

    Any can update this plugin?
     
  9. Offline

    SupremeSurvival

    I having issues with maintaining enchantments as well! Please update the plugin! Thanks!
     
  10. Offline

    vicente947

    Please update
     
  11. Offline

    _Robert

    You must regenerate all the xAuth database or edit your old h2 database. Those sentences are used uppon tables creation, there are not executed once you have the tables created.

    Well, im glad to make my first contribution to the bukkit community :D.

    Here's my xAuth fixed, it's very similar to what the russian guy did, but i didn't left my job in the half ;). The armor slots are working and the extra field it's added in the generation of the tables or files (in case you like to use h2), also the update of the database it's working (explained above).

    For those who are not installing from zero, backup all your database or your xAuth plugin folder (just in case something goes wrong), delete the DBVERSION file in the xAuth plugin folder, and run the server. This should create the new field neccesary for keep the items enchants.

    Well, that's not working, so you must add the field manually.

    For h2 users, you should use some gui to open your database files and execute this query:

    ALTER TABLE `INVENTORY` ADD COLUMN IF NOT EXISTS `enchantments` VARCHAR NOT NULL;

    Follow these steps:

    For mysql execute this:

    DROP TABLE `INVENTORY`;
    CREATE TABLE IF NOT EXISTS `INVENTORY` (
    `playername` VARCHAR(255) NOT NULL,
    `itemid` TEXT NOT NULL,
    `amount` TEXT NOT NULL,
    `durability` TEXT NOT NULL,
    `enchantments` TEXT NOT NULL,
    PRIMARY KEY (`playername`)
    );

    Also, if you're missing your locations when you log in and you have commandbook installed, go to the config file of command book and put "exact-spawn" in false.

    Here it's the jar: xAuth fixed

    For those having warnings with NoLagg and Sync issues: xAuth Sync (Latest)

    And the source: xAuth fixed source code

    Let me know if works! (For me does :p)

    Happy new year for all! :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  12. Offline

    beleg

    thank you :) you fixed the async threading issues as well?

    not working for me :/
    Code:
    06:01:08 [INFO] [xAuth] 'Permissions' v2.7.7 support enabled![0m
    06:01:09 [INFO] [xAuth] Connection to database established![0m
    06:01:09 [INFO] [xAuth] Updating database..[0m
    06:01:09 [SEVERE] [xAuth] SQL query failure [write] (ALTER TABLE `tele_locations` ADD COLUMN `uid` VARCHAR(36) NULL BEFORE `worldname`)[0m
    org.h2.jdbc.JdbcSQLException: Column "WORLDNAME" not found; SQL statement:[0m
    ALTER TABLE `tele_locations` ADD COLUMN `uid` VARCHAR(36) NULL BEFORE `worldname` [42122-159][0m
            at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)[0m
            at org.h2.message.DbException.get(DbException.java:169)[0m
            at org.h2.message.DbException.get(DbException.java:146)[0m
            at org.h2.table.Table.getColumn(Table.java:595)[0m
            at org.h2.command.ddl.AlterTableAlterColumn.cloneTableStructure(AlterTableAlterColumn.java:258)[0m
            at org.h2.command.ddl.AlterTableAlterColumn.copyData(AlterTableAlterColumn.java:196)[0m
            at org.h2.command.ddl.AlterTableAlterColumn.update(AlterTableAlterColumn.java:132)[0m
            at org.h2.command.CommandContainer.update(CommandContainer.java:71)[0m
            at org.h2.command.Command.executeUpdate(Command.java:212)[0m
            at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:143)[0m
            at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:129)[0m
            at com.cypherx.xauth.database.Database.queryWrite(Database.java:90)[0m
            at com.cypherx.xauth.database.DbUpdate.update(DbUpdate.java:61)[0m
            at com.cypherx.xauth.database.DbUpdate.update(DbUpdate.java:39)[0m
            at com.cypherx.xauth.xAuth.onEnable(xAuth.java:98)[0m
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)[0m
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)[0m
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)[0m
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)[0m
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)[0m
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)[0m
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)[0m
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)[0m
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)[0m
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)[0m
    06:01:09 [SEVERE] [xAuth] Database update (1 -> 2) failed![0m
    06:01:09 [INFO] [xAuth] v2.0b4.3 Disabled![0m
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  13. Offline

    _Robert

    Well, i didn't touched were you are having the error. So, you could delete the entery database and start from zero, or you could modify your existing h2 database using a tool like this:
    http://www.razorsql.com/features/h2_visual_tools.html

    It should be quite easy, personally i'm using MySQL and i use HeidiSQL.

    Could you upload your h2 files? So i can test with them?
     
  14. Offline

    beleg

    Im not really sure what I have to do now with razorsql.. in my h2 db are many passwords.. how secure is it to upload them?
     
  15. Offline

    _Robert

    I assume that you must open up the h2 files, and then execute this query

    ALTER TABLE `inventory` ADD COLUMN IF NOT EXISTS `enchantments` VARCHAR NOT NULL;

    They're encripted with the xAuth algorithm (you can read more about it in the wiki of the source), nobody can see them. If you want send me a PM with the files, or send them to my email bertoski@gmail.com.
     
  16. Offline

    GameFAQsRolo

    @_Robert I wanted to test your update out so I followed you instructions for an existing setup. I deleted the DBVERSION file and restarted. On startup, it throws the following error
    Startup Error (open)

    Code:
    00:34:54 [SEVERE] [xAuth] SQL query failure [write] (ALTER TABLE `xauth_tele_locations` ADD COLUMN `uid` VARCHAR(36) NOT NULL FIRST)
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate column name 'uid'
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
            at com.mysql.jdbc.Util.getInstance(Util.java:382)
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
            at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
            at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
            at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
            at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
            at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
            at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
            at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
            at com.cypherx.xauth.database.Database.queryWrite(Database.java:90)
            at com.cypherx.xauth.database.DbUpdate.update(DbUpdate.java:61)
            at com.cypherx.xauth.database.DbUpdate.update(DbUpdate.java:39)
            at com.cypherx.xauth.xAuth.onEnable(xAuth.java:98)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:228)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:970)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    I'm using WAMP for mysql and I already had the enchantment field since I added it when I updated to Hwo's version. To bypass the problem, I just restored the old DBVERSION file. There's also another problem with the plugin and async tasks. Could you fix that problem, too?
    async task (open)
    Code:
    00:36:10 [WARNING] Could not properly handle event PLAYER_TELEPORT:
    java.lang.IllegalAccessError: Synchronized code got accessed from another thread: com.cypherx.xauth.xAuth$2
            at org.bukkit.event.player.PlayerListener.onPlayerTeleport(PlayerListener:0)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:324)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
            at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:297)
            at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:156)
            at com.cypherx.xauth.xAuth$2.run(xAuth.java:295)
            at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
     
  17. Offline

    guzior

    Code:
    31.12 10:32:22 [Server] INFO Please contact one of the authors of plugin 'xAuth': CypherX
    31.12 10:32:22 [Server] INFO This error is logged only once: it could have occurred multiple times by now.
    31.12 10:32:22 [Server] INFO     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    31.12 10:32:22 [Server] INFO     at com.cypherx.xauth.xAuth$2.run(xAuth.java:302)
    31.12 10:32:22 [Server] INFO     at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:156)
    31.12 10:32:22 [Server] INFO     at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:297)
    31.12 10:32:22 [Server] INFO     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    31.12 10:32:22 [Server] INFO     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    31.12 10:32:22 [Server] INFO     at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:321)
    31.12 10:32:22 [Server] INFO     at org.bukkit.event.player.PlayerListener.onPlayerTeleport(PlayerListener:0)
    31.12 10:32:22 [Server] INFO java.lang.IllegalAccessError: Synchronized code got accessed from another thread: com.cypherx.xauth.xAuth$2
    31.12 10:32:22 [Server] WARNING Could not properly handle event PLAYER_TELEPORT:
    
    what is this?
     
  18. Offline

    Mrchasez

    Someone please update PLEASE
     
  19. Offline

    veN1337

    Im not using CommandBookand i still got this error. You know why?

    Btw: The author of this plugin havent been online for months.
    He wont read your "please update" posts.
    This plugin seems to be dead.
    Switch to another auth-plugin(eg. AuthDB)!
     
  20. Offline

    jackks

    Hello there. Thank you for this plugin. Could you add one little feature here ?
    Will it be possible to send "pings" to a given url when someone logs in succesfully ?
    For example "josh" logs in and then the plugin pings the url http://myserver.com/ping?apikey=example&username=josh

    That would help me execute pending actions for that user.
     
  21. Offline

    _Robert

    Im not having that error, maybye it's another plugin that conflicts with xAuth.

    Look, this is the list of hooks of xAuth to the player events:

    As you can see there's no PLAYER_TELEPORT event registered here. Wich plugins are you using?
     
  22. Offline

    GameFAQsRolo

    @_Robert You get that error when using NoLagg. Here's is an earlier post in this thread from the author.

    Here is the description from his plugin.
    So it's not a major conflict, both plugins are still working. It just seems to be a warning about something that should be fixed. I just want to see if fixing this will fix the issue with players sometimes not getting teleported back to where they were when they last logged out (they end up at spawn). That issue is present even when not using NoLagg.
     
  23. Offline

    bergerkiller

    Yup, and it's logged only once to prevent endless spamming. It's an XAuth bug which needs fixing, since everything a plugin does in the teleport event can go bananas if the teleport event is caused by the async thread of XAuth. For example, it can cause long-running synchronized tasks to throw concurrent modification exceptions, which can ruin a plugin in total.

    Another example: if the player is teleported to another world, the world entity list is accessed from another thread, which can result in the entire server crashing, or cause any plugin that loops through that list right at that moment to throw an error.
     
  24. Offline

    _Robert

    Okey guys, im not a plugin developer, im barely starting to code in java, and it's still confusing to me. Plus, i started to get knowledge of the bukkit api with this fix, so be easy on me. If you want, you can deactivate the teleport feature in the opts flaggin "protect-location" to false.

    Anyway, @bergekiller, i think you might know how to fix this! You have 6 plugins writen by your own, including NoLagg wich controles this issues, and it seems you know what you're talking about, so here it is, this is the code that's causing the error, tell how to fix it and i will make the build :).

    (There's a comment where i belive the error is).

    Code:
        public void onPlayerJoin(PlayerJoinEvent event) {
            final Player player = event.getPlayer();
            if (player == null)
                return;
    
            xAuthPlayer xPlayer = plugin.getPlayerJoin(player.getName());
            boolean isRegistered = xPlayer.isRegistered();
    
            if (!xPlayer.isAuthenticated() && (isRegistered || (!isRegistered && xPlayer.mustRegister()))) {
                final String fieldName;
                plugin.createGuest(xPlayer);
    
                if (isRegistered || xAuthSettings.authURLEnabled)
                    fieldName = "joinLogin";
                else
                    fieldName = "joinRegister";
    
                // this is needed to send the message after the "xxx has joined.." announcement
                plugin.getServer().getScheduler().scheduleAsyncDelayedTask(plugin, new Runnable() {
                    public void run() {
                        xAuthMessages.send(fieldName, player);
                    }
                }, 1);
            }
        }


    Code:
            public void protect(final xAuthPlayer xPlayer) {
    		final Player player = xPlayer.getPlayer();
    		PlayerInventory playerInv = player.getInventory();
    
    		DbUtil.insertInventory(xPlayer);
    		playerInv.clear();
    		playerInv.setHelmet(null);
    		playerInv.setChestplate(null);
    		playerInv.setLeggings(null);
    		playerInv.setBoots(null);
    
    		// fix for spawning issues - I belive the error it's here.
    		getServer().getScheduler().scheduleAsyncDelayedTask(this, new Runnable() {
    			public void run() {
    				if (player.getHealth() > 0)
    					xPlayer.setLocation(player.getLocation());
    
    				if (xAuthSettings.protectLoc)
    					player.teleport(getLocationToTeleport(player.getWorld()));
    			}
    		}, 2);
    
    		// xPlayer.setCreative(player.getGameMode().equals(GameMode.CREATIVE));
    		// if (xPlayer.isCreative())
    			player.setGameMode(GameMode.SURVIVAL);
    
    		player.saveData();
    	}
    [/ CODE]
     
    GameFAQsRolo likes this.
  25. Offline

    FTC56

    Hello;
    Is it possible to make it compatible with the latest version of Bukkit?
     
  26. Offline

    bergerkiller

    @_Robert Change the 'scheduleAsyncDelayedTask' with a 'scheduleSyncDelayedTask', I honestly can't understand why an async task was used there in the first place...
     
    GameFAQsRolo likes this.
  27. Offline

    hoppsan

    Guys theres a critical bug in xAuth wich a potential hacker can get through anyone offline admins!
    I cant get the whole code because its so long but please fix this ASAP is a major security hole!

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    06:36:00 [SEVERE] Could not pass event PLAYER_MOVE to xAuth
    java.lang.NullPointerException
    at com.cypherx.xauth.util.Util.getHostFromPlayer(Util.java:86)
    at com.cypherx.xauth.xAuthMessages.replace(xAuthMessages.java:257)
    at com.cypherx.xauth.xAuthMessages.get(xAuthMessages.java:226)
    at com.cypherx.xauth.xAuthMessages.send(xAuthMessages.java:203)
    at com.cypherx.xauth.xAuthPlayer.sendIllegalActionNotice(xAuthPlayer.jav
    a:72)
    at com.cypherx.xauth.listeners.xAuthPlayerListener.onPlayerMove(xAuthPla
    yerListener.java:218)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    va:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:182)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    06:36:02 [SEVERE] Could not pass event PLAYER_MOVE to xAuth
    java.lang.NullPointerException
    at com.cypherx.xauth.util.Util.getHostFromPlayer(Util.java:86)
    at com.cypherx.xauth.xAuthMessages.replace(xAuthMessages.java:257)
    at com.cypherx.xauth.xAuthMessages.get(xAuthMessages.java:226)
    at com.cypherx.xauth.xAuthMessages.send(xAuthMessages.java:203)
    at com.cypherx.xauth.xAuthPlayer.sendIllegalActionNotice(xAuthPlayer.jav
    a:72)
    at com.cypherx.xauth.listeners.xAuthPlayerListener.onPlayerMove(xAuthPla
    yerListener.java:218)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    va:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:182)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    06:36:04 [INFO] [Owner] hoppsan4: Its called a cracked client you retard
    06:36:05 [INFO] [PLAYER_COMMAND] hoppsan4: /tp ownu
    06:36:06 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to xAuth
    java.lang.NullPointerException
    at com.cypherx.xauth.util.Util.getHostFromPlayer(Util.java:86)
    at com.cypherx.xauth.xAuthMessages.replace(xAuthMessages.java:257)
    at com.cypherx.xauth.xAuthMessages.get(xAuthMessages.java:226)
    at com.cypherx.xauth.xAuthMessages.send(xAuthMessages.java:203)
    at com.cypherx.xauth.xAuthPlayer.sendIllegalActionNotice(xAuthPlayer.jav
    a:72)
    at com.cypherx.xauth.listeners.xAuthPlayerListener.onPlayerCommandPrepro
    cess(xAuthPlayerListener.java:143)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.ja
    va:293)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:750)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  28. Offline

    lambik40

    I just downloaded your .jar file, uploaded it on my server and it is not working. Im running at version CB 1.0.1. Thanks for any help, will much appreciate.

     
  29. Offline

    _Robert

    It's working but you must update the inventory table, it's not as simple as drag and drop, you updated it?
     
  30. Offline

    beleg

    could you please create an step by step tutorial how to update the h2 db? I tried it but I failed :/ im just able to open tables in the "INFORMATION_SCHEMA"
     
  31. Offline

    _Robert

    1. Open RazorSQL go to file > new tab (no connection)
    2. Click on "Click to connect to a new database"
    3. Click on add a connection profile
    4. Select h2, click continue, and then select JDBC(H2 Embedded).
    5. Set in:
    Profile name: xAuth
    Driver location: (Click on download if this empty, mine says C:\Users\Robert\.razorsql\h2\h2.jar)
    Driver class: (Click on download if this empty, mine says org.h2.Driver )
    Login: sa
    Database.data.db file: This is a little buggy, click on browse, then seek for the xAuth.h2.db file in xAuth folder inside server plugins folder and select it. Once selected it should appear something like this in the field:
    D:\Current\Minecraft\_Bukkit_Debug\plugins\xAuth\xAuth.h2.db
    Now delete the .h2.db extension, RazorSQL adds them by default, finally it should be like this:
    D:\Current\Minecraft\_Bukkit_Debug\plugins\xAuth\xAuth
    6. Click on Connect!
    7. Go to public > tables, if you see data in there (Acconts, inventory, etc) it means that it worked! FYI these are the structures of the tables.
    8. Paste this in the blank field at your right (yes, the one that have the lines enumerated):
    ALTER TABLE `INVENTORY` ADD COLUMN `enchantments` VARCHAR;
    9. Click on the green arrow pointing right in the toolbar (Execute SQL).
    10. Close RazorSQL (it will prompt, click no, it ask to save the SQL command) and launch your server :D.

    There you go! http://dl.dropbox.com/u/40068360/xAuthSync.jar

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
    beleg likes this.
Thread Status:
Not open for further replies.

Share This Page