This commit is contained in:
Robin Kupper
2011-03-10 13:13:30 +01:00
parent 63a4969dcc
commit 297cebde61
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class Rollback implements Runnable
edits.clear();
try {
conn.setAutoCommit(false);
ps = conn.prepareStatement("SELECT type, data, replaced, x, y, z FROM `" + table + "` WHERE player = ? AND date > date_sub(now(), INTERVAL ? MINUTE) ORDERr BY date DESC", Statement.RETURN_GENERATED_KEYS);
ps = conn.prepareStatement("SELECT type, data, replaced, x, y, z FROM `" + table + "` WHERE player = ? AND date > date_sub(now(), INTERVAL ? MINUTE) ORDER BY date DESC", Statement.RETURN_GENERATED_KEYS);
ps.setString(1, name);
ps.setInt(2, minutes);
rs = ps.executeQuery();
@ -82,6 +82,7 @@ public class Rollback implements Runnable
this.x = x;
this.y = y;
this.z = z;
this.world = world;
}
public void perform()

View File

@ -1,5 +1,5 @@
name: LogBlock
version: 0.4
version: 0.4b
author: DiddiZ, bootswithdefer
website: http://www.diddiz.de/minecraft/
main: de.diddiz.LogBlock.LogBlock