|
|
|
@ -1,5 +1,6 @@
@@ -1,5 +1,6 @@
|
|
|
|
|
package engine.net.client.handlers; |
|
|
|
|
|
|
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
|
import engine.gameManager.DbManager; |
|
|
|
|
import engine.objects.Group; |
|
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
@ -19,14 +20,11 @@ public enum KeyCloneAudit {
@@ -19,14 +20,11 @@ public enum KeyCloneAudit {
|
|
|
|
|
if (machineID.equals(member.getClientConnection().machineID)) |
|
|
|
|
machineCount = machineCount + 1; |
|
|
|
|
|
|
|
|
|
// (int) ConfigManager.WORLDSERVER.config.get("keyclone")
|
|
|
|
|
if (machineCount > 4) { |
|
|
|
|
if (machineCount > Integer.parseInt(ConfigManager.MB_WORLD_KEYCLONE_MAX.getValue())) { |
|
|
|
|
Logger.error("Keyclone detected from: " + player.getAccount().getUname() + |
|
|
|
|
" with machine count of: " + machineCount); |
|
|
|
|
DbManager.AccountQueries.SET_TRASH(machineID); |
|
|
|
|
} |
|
|
|
|
// Refactor to separate file to log keyclones
|
|
|
|
|
// DbManager.AccountQueries.EMPTY_TRASH(machineID);
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|