1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-30 20:11:23 +01:00

Update player name together with seen to have most recent user name

This commit is contained in:
Zrips 2017-01-13 13:12:33 +02:00
parent 6062d403e2
commit ddf9fbb908
2 changed files with 6 additions and 6 deletions

View File

@ -948,10 +948,10 @@ public abstract class JobsDAO {
return;
PreparedStatement prest = null;
try {
prest = conn.prepareStatement("UPDATE `" + prefix
+ "users` SET `seen` = ? WHERE `id` = ?;");
prest = conn.prepareStatement("UPDATE `" + prefix + "users` SET `seen` = ?, `username` = ? WHERE `id` = ?;");
prest.setLong(1, System.currentTimeMillis());
prest.setInt(2, player.getUserId());
prest.setString(1, player.getUserName());
prest.setInt(3, player.getUserId());
prest.execute();
} catch (SQLException e) {
} finally {

View File

@ -1,7 +1,7 @@
name: Jobs
description: Jobs Plugin for the BukkitAPI
main: com.gamingmesh.jobs.Jobs
version: 3.7.3
version: 3.7.4
author: phrstbrn
softdepend: [Vault, iConomy, MythicMobs, McMMO]
commands: