diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index 22d70307..4f0bf589 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -95,6 +95,7 @@ import com.gamingmesh.jobs.stuff.RawMessage; import com.gamingmesh.jobs.stuff.TabComplete; import com.gamingmesh.jobs.stuff.VersionChecker; import com.gamingmesh.jobs.stuff.CMIScoreboardManager; +import com.gamingmesh.jobs.stuff.Debug; import com.gamingmesh.jobs.tasks.BufferedPaymentThread; import com.gamingmesh.jobs.tasks.DatabaseSaveThread; diff --git a/src/main/java/com/gamingmesh/jobs/dao/.gitignore b/src/main/java/com/gamingmesh/jobs/dao/.gitignore index b5c3fb89..7b732a5a 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/.gitignore +++ b/src/main/java/com/gamingmesh/jobs/dao/.gitignore @@ -10,4 +10,3 @@ /JobsDrivers.class /JobsDAO$1.class /JobsDAO$2.class -/JobsDAO.java diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java index d60656d1..429abd9d 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java +++ b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java @@ -786,10 +786,14 @@ public abstract class JobsDAO { prestt.setString(2, playerName); prestt.setLong(3, System.currentTimeMillis()); prestt.executeUpdate(); + res2 = prestt.getGeneratedKeys(); int id = 0; if (res2.next()) id = res2.getInt(1); + + Debug.D("got id " + id); + Jobs.getPlayerManager().addPlayerToMap(new PlayerInfo(playerName, id, uuid, System.currentTimeMillis())); } catch (SQLException e) { e.printStackTrace(); diff --git a/src/main/resources/locale/.gitignore b/src/main/resources/locale/.gitignore new file mode 100644 index 00000000..08351d41 --- /dev/null +++ b/src/main/resources/locale/.gitignore @@ -0,0 +1 @@ +/messages_de.yml