forked from LogBlock/LogBlock
Shortened blockstats query.
This commit is contained in:
@@ -42,7 +42,7 @@ public class BlockStats implements Runnable
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("MM-dd HH:mm:ss");
|
||||
try {
|
||||
conn.setAutoCommit(false);
|
||||
ps = conn.prepareStatement("SELECT * FROM `" + table + "` LEFT JOIN `" + table + "-sign` USING (`id`) INNER JOIN `lb-players` USING (`playerid`) WHERE `x` = ? AND `y` = ? AND `z` = ? ORDER BY `date` DESC LIMIT 15");
|
||||
ps = conn.prepareStatement("SELECT date, replaced, type, signtext, playername FROM `" + table + "` LEFT JOIN `" + table + "-sign` USING (id) INNER JOIN `lb-players` USING (playerid) WHERE x = ? AND y = ? AND z = ? ORDER BY date DESC LIMIT 15");
|
||||
ps.setInt(1, block.getX());
|
||||
ps.setInt(2, block.getY());
|
||||
ps.setInt(3, block.getZ());
|
||||
|
Reference in New Issue
Block a user