@EventHandler(priority = EventPriority.HIGH)
    public void join(PlayerJoinEvent event) {
        if (plugin.config.usedbtomanageXP) {
            String playername;
            Player player = event.getPlayer();
            double XP = plugin.getTOTALXP(player);
            double XPneu = XP;
            playername = player.getName();
            if (plugin.config.debug) {
                plugin.Logger("Playername (joined): " + playername, "Debug");
            }
            try {
                if (plugin.SQL.isindb(playername)) {
                    if (plugin.config.debug) {
                        plugin.Logger("Playername is in db: " + playername + "With " + XP + " XP! DB: " + plugin.SQL.getXP(playername), "Debug");
                    }
                    XPneu = plugin.SQL.getXP(playername);
                } else {
                    XPneu = plugin.getTOTALXP(player);
                    plugin.SQL.InsertAuction(playername, (int) XPneu);
                    if (plugin.config.debug) {
                        plugin.Logger("Playername insert into db: " + playername + "With " + XP + " XP! DB: " + plugin.SQL.getXP(playername), "Debug");
                    }

                }
            } catch (SQLException we) {
                return;
            }
            if (XP != XPneu) {
                if (XP < XPneu) {
                    plugin.PlayerLogger(player, String.format(plugin.config.addedxp, (int) XPneu - XP), "");
                } else if (XPneu < XP) {
                    plugin.PlayerLogger(player, String.format(plugin.config.substractedxp, (int) XP - XPneu), "");
                }
                player.setLevel(0);
                player.setExp(0);
                plugin.UpdateXP(player, (int) XP, "Join");
                player.saveData();
            }
        }
    }