mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-01 02:38:25 +00:00
parent
5d8f5cecee
commit
cdea68443a
1 changed files with 1 additions and 2 deletions
|
@ -272,8 +272,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||||
conn = cpds.getConnection();
|
conn = cpds.getConnection();
|
||||||
ps = getStatementPlayerCountByLocation(conn, block.getWorld().getName(), block.getX(), block.getY(), block.getZ(), playerName);
|
ps = getStatementPlayerCountByLocation(conn, block.getWorld().getName(), block.getX(), block.getY(), block.getZ(), playerName);
|
||||||
rs = ps.executeQuery();
|
rs = ps.executeQuery();
|
||||||
rs.next();
|
return rs.next() && rs.getInt(1) > 0 && rs.getInt(2) == 0;
|
||||||
return rs.getInt(1) > 0 && rs.getInt(2) == 0;
|
|
||||||
}
|
}
|
||||||
catch (SQLException ex)
|
catch (SQLException ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue