1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00
This commit is contained in:
Zrips 2017-09-01 12:19:19 +03:00
parent 023b268ec0
commit 23ca602689
4 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -10,4 +10,3 @@
/JobsDrivers.class
/JobsDAO$1.class
/JobsDAO$2.class
/JobsDAO.java

View File

@ -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();

1
src/main/resources/locale/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/messages_de.yml