|
|
|
@ -18,16 +18,17 @@ public enum KeyCloneAudit {
@@ -18,16 +18,17 @@ public enum KeyCloneAudit {
|
|
|
|
|
|
|
|
|
|
public static boolean auditChatMsg(PlayerCharacter pc, String message) { |
|
|
|
|
|
|
|
|
|
Group g = GroupManager.getGroup(pc); |
|
|
|
|
if(pc.combatTarget != null && message.contains(String.valueOf(pc.combatTarget.getObjectUUID()))) { |
|
|
|
|
//targeting software detected
|
|
|
|
|
|
|
|
|
|
if(g == null) |
|
|
|
|
return false; |
|
|
|
|
Group g = GroupManager.getGroup(pc); |
|
|
|
|
|
|
|
|
|
if(pc.combatTarget != null && message.contains(String.valueOf(pc.combatTarget.getObjectUUID()))){ |
|
|
|
|
//targeting software detected
|
|
|
|
|
for(PlayerCharacter member : g.members){ |
|
|
|
|
if (g == null) |
|
|
|
|
pc.getClientConnection().forceDisconnect(); |
|
|
|
|
else |
|
|
|
|
for (PlayerCharacter member : g.members) |
|
|
|
|
member.getClientConnection().forceDisconnect(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|