Fix PlayWire error, handle future errors properly
This commit is contained in:
parent
3f3241bec9
commit
b35d933e56
@ -112,11 +112,22 @@ public class AccountRepository extends MinecraftRepository
|
||||
statement.getMoreResults();
|
||||
|
||||
for (ILoginProcessor loginProcessor : loginProcessors)
|
||||
{
|
||||
try
|
||||
{
|
||||
loginProcessor.processLoginResultSet(name, uuid, finalId, statement.getResultSet());
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
System.out.println("Error: ILoginProcessor raised an exception");
|
||||
t.printStackTrace(System.out);
|
||||
}
|
||||
finally
|
||||
{
|
||||
statement.getMoreResults();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return accountId;
|
||||
|
@ -39,7 +39,7 @@ public class PlayWireManager extends MiniDbClientPlugin<PlayWireClientData>
|
||||
@Override
|
||||
public String getQuery(int accountId, String uuid, String name)
|
||||
{
|
||||
return "SELECT `redeemed` FROM `play_wire` WHERE `accountId`=" + accountId + ";";
|
||||
return "SELECT `redeemed`, `streak` FROM `play_wire` WHERE `accountId`=" + accountId + ";";
|
||||
}
|
||||
|
||||
public boolean canRedeem(Player player)
|
||||
|
Loading…
Reference in New Issue
Block a user