Browse Source

disable DB write for cheaters

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
a7d01cc461
  1. 6
      src/engine/util/KeyCloneAudit.java

6
src/engine/util/KeyCloneAudit.java

@ -31,7 +31,7 @@ public enum KeyCloneAudit {
if (g == null) { if (g == null) {
try { try {
Logger.error("TARGET SOFTWARE DETECTED ON ACCOUNT: " + pc.getAccount().getUname()); Logger.error("TARGET SOFTWARE DETECTED ON ACCOUNT: " + pc.getAccount().getUname());
DbManager.AccountQueries.SET_TRASH(pc.getAccount().getUname(), "TARGET"); //DbManager.AccountQueries.SET_TRASH(pc.getAccount().getUname(), "TARGET");
pc.getClientConnection().forceDisconnect(); pc.getClientConnection().forceDisconnect();
}catch(Exception e){ }catch(Exception e){
@ -40,7 +40,7 @@ public enum KeyCloneAudit {
for (PlayerCharacter member : g.members) { for (PlayerCharacter member : g.members) {
try { try {
Logger.error("TARGET SOFTWARE DETECTED ON ACCOUNT: " + member.getAccount().getUname()); Logger.error("TARGET SOFTWARE DETECTED ON ACCOUNT: " + member.getAccount().getUname());
DbManager.AccountQueries.SET_TRASH(member.getAccount().getUname(), "TARGET"); //DbManager.AccountQueries.SET_TRASH(member.getAccount().getUname(), "TARGET");
member.getClientConnection().forceDisconnect(); member.getClientConnection().forceDisconnect();
} catch (Exception e) { } catch (Exception e) {
@ -106,7 +106,7 @@ public enum KeyCloneAudit {
} }
if (origin.finalStrikes > 3) { if (origin.finalStrikes > 3) {
origin.forceDisconnect(); origin.forceDisconnect();
DbManager.AccountQueries.SET_TRASH(pc.getAccount().getUname(), "TABSPEED"); //DbManager.AccountQueries.SET_TRASH(pc.getAccount().getUname(), "TABSPEED");
Logger.error("TAB SPEED DETECTED ON ACCOUNT: " + pc.getAccount().getUname()); Logger.error("TAB SPEED DETECTED ON ACCOUNT: " + pc.getAccount().getUname());
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save