Yo dawg. Lets start populating the seen row
This commit is contained in:
parent
4baae5a230
commit
eaf99cf4a6
@ -63,10 +63,11 @@ public class SQLReconnectHandler extends AbstractReconnectManager
|
|||||||
public void setServer(ProxiedPlayer player)
|
public void setServer(ProxiedPlayer player)
|
||||||
{
|
{
|
||||||
|
|
||||||
try ( PreparedStatement ps = connection.prepareStatement( "UPDATE players SET server = ? WHERE username = ?" ) )
|
try ( PreparedStatement ps = connection.prepareStatement( "UPDATE players SET server = ?, seen = ? WHERE username = ?" ) )
|
||||||
{
|
{
|
||||||
ps.setString( 1, player.getServer().getInfo().getName() );
|
ps.setString( 1, player.getServer().getInfo().getName() );
|
||||||
ps.setString( 2, player.getName() );
|
ps.setInt( 2, (int) ( System.currentTimeMillis() / 1000L ) );
|
||||||
|
ps.setString( 3, player.getName() );
|
||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
} catch ( SQLException ex )
|
} catch ( SQLException ex )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user