log selected object UUID
This commit is contained in:
@@ -183,6 +183,8 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
|
|
||||||
public PlayerCombatStats combatStats;
|
public PlayerCombatStats combatStats;
|
||||||
|
|
||||||
|
public Integer selectedUUID = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No Id Constructor
|
* No Id Constructor
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public enum KeyCloneAudit {
|
|||||||
|
|
||||||
public static boolean auditChatMsg(PlayerCharacter pc, String message) {
|
public static boolean auditChatMsg(PlayerCharacter pc, String message) {
|
||||||
|
|
||||||
if(pc.combatTarget != null && message.contains(String.valueOf(pc.combatTarget.getObjectUUID()))) {
|
if(message.contains(String.valueOf(pc.selectedUUID))) {
|
||||||
//targeting software detected
|
//targeting software detected
|
||||||
|
|
||||||
Group g = GroupManager.getGroup(pc);
|
Group g = GroupManager.getGroup(pc);
|
||||||
@@ -64,11 +64,16 @@ public enum KeyCloneAudit {
|
|||||||
try {
|
try {
|
||||||
TargetObjectMsg tarMsg = (TargetObjectMsg) msg;
|
TargetObjectMsg tarMsg = (TargetObjectMsg) msg;
|
||||||
ClientConnection origin = (ClientConnection) msg.getOrigin();
|
ClientConnection origin = (ClientConnection) msg.getOrigin();
|
||||||
|
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
|
|
||||||
if (tarMsg.getTargetType() != MBServerStatics.MASK_PLAYER)
|
if (tarMsg.getTargetType() != MBServerStatics.MASK_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
PlayerCharacter pc = origin.getPlayerCharacter();
|
||||||
|
pc.selectedUUID = ((TargetObjectMsg) msg).getTargetID();
|
||||||
|
|
||||||
|
|
||||||
if (System.currentTimeMillis() > origin.finalStrikeRefresh) {
|
if (System.currentTimeMillis() > origin.finalStrikeRefresh) {
|
||||||
origin.lastStrike = System.currentTimeMillis();
|
origin.lastStrike = System.currentTimeMillis();
|
||||||
origin.strikes = 0;
|
origin.strikes = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user