1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-02-07 07:51:34 +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; return;
PreparedStatement prest = null; PreparedStatement prest = null;
try { try {
prest = conn.prepareStatement("UPDATE `" + prefix prest = conn.prepareStatement("UPDATE `" + prefix + "users` SET `seen` = ?, `username` = ? WHERE `id` = ?;");
+ "users` SET `seen` = ? WHERE `id` = ?;");
prest.setLong(1, System.currentTimeMillis()); prest.setLong(1, System.currentTimeMillis());
prest.setInt(2, player.getUserId()); prest.setString(1, player.getUserName());
prest.setInt(3, player.getUserId());
prest.execute(); prest.execute();
} catch (SQLException e) { } catch (SQLException e) {
} finally { } finally {

View File

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