Fix PlayWire error, handle future errors properly
This commit is contained in:
parent
3f3241bec9
commit
b35d933e56
@ -113,8 +113,19 @@ public class AccountRepository extends MinecraftRepository
|
|||||||
|
|
||||||
for (ILoginProcessor loginProcessor : loginProcessors)
|
for (ILoginProcessor loginProcessor : loginProcessors)
|
||||||
{
|
{
|
||||||
loginProcessor.processLoginResultSet(name, uuid, finalId, statement.getResultSet());
|
try
|
||||||
statement.getMoreResults();
|
{
|
||||||
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ public class PlayWireManager extends MiniDbClientPlugin<PlayWireClientData>
|
|||||||
@Override
|
@Override
|
||||||
public String getQuery(int accountId, String uuid, String name)
|
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)
|
public boolean canRedeem(Player player)
|
||||||
|
Loading…
Reference in New Issue
Block a user