This commit is contained in:
Robin Kupper
2011-05-22 20:32:42 +02:00
parent f788d5ef14
commit 009b4b2595
2 changed files with 2 additions and 3 deletions

View File

@@ -321,7 +321,7 @@ public class Consumer extends TimerTask
if (!addPlayer(b.name)) {
log.warning("[LogBlock Consumer] Failed to add player " + b.name);
continue;
}
}
table = config.tables.get(b.worldHash);
state.execute("INSERT INTO `" + table + "` (date, playerid, replaced, type, data, x, y, z) SELECT now(), playerid, " + b.replaced + ", " + b.type + ", " + b.data + ", '" + b.x + "', " + b.y + ", '" + b.z + "' FROM `lb-players` WHERE playername = '" + b.name + "'", Statement.RETURN_GENERATED_KEYS);
if (b.signtext != null) {
@@ -352,7 +352,7 @@ public class Consumer extends TimerTask
if (!addPlayer(k.killer)) {
log.warning("[LogBlock Consumer] Failed to add player " + k.killer);
continue;
}
}
if (!players.contains(k.victim.hashCode()))
if (!addPlayer(k.victim)) {
log.warning("[LogBlock Consumer] Failed to add player " + k.victim);

View File

@@ -66,7 +66,6 @@ public class BukkitUtils
continue;
}
final int comp = comperator.compare(items1[c1], items2[c2]);
System.out.print("Comparing: " + items1[c1] + " & " + items2[c2] + " = " + comp);
if (comp < 0) {
items1[c1].setAmount(items1[c1].getAmount() * -1);
diff.add(items1[c1]);