mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user