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