So as many people keep asking me to post snippet instead of posting the hole source so I decided to post the fix.
Step 1. go in KillLogHandler.java and replace it with this
You should be all good to go if not added me on skype. it should work force stop.Code:package ab.database;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.List;
import java.util.Objects;
import ab.model.items.GameItem;
import ab.model.items.ItemAssistant;
import ab.model.players.Player;
public class KillLogHandler {
private static final int BATCH_SIZE = 1;
private final String query = "INSERT INTO kills (DATE, WINNER, IP, LOSER, IP2, DROPPED) VALUES (?, ?, ?, ?, ?, ?)";
private BatchQuery batch;
private int batchCounter;
public KillLogHandler() {
resetBatch();
}
private void resetBatch() {
batch = new BatchQuery(query);
batchCounter = 0;
}
private String createDropString(List<GameItem> droppedItems) {
if (Objects.isNull(droppedItems) || droppedItems.size() == 0) {
return "";
}
StringBuilder sb = new StringBuilder();
for (GameItem item : droppedItems) {
sb.append(ItemAssistant.getItemName(item.getId()));
if (item.getAmount() > 1) {
sb.append(" x" + item.getAmount() + "");
}
sb.append(", ");
}
return sb.substring(0, sb.length() - 2);
}
private String getIP(Player c) {
if (c.getRights().isBetween(1, 3)) {
return "Private";
}
return c.connectedFrom;
}
public void logKill(Player o, Player c, List<GameItem> droppedItems) {
// TODO Auto-generated method stub
}
}
Any Problems added me on skype.
--------------------
Skype Skiller.pk
--------------------
-------------------
Happy Coding!!!
-------------------
