detection of using /tar
This commit is contained in:
@@ -148,6 +148,12 @@ public class ClientMessagePump implements NetMsgHandler {
|
|||||||
pc.setActive(true);
|
pc.setActive(true);
|
||||||
|
|
||||||
pc.setLastTarget(GameObjectType.values()[msg.getTargetType()], msg.getTargetID());
|
pc.setLastTarget(GameObjectType.values()[msg.getTargetType()], msg.getTargetID());
|
||||||
|
|
||||||
|
if(!pc.getTimestamps().containsKey("lastTab"))
|
||||||
|
pc.getTimestamps().put("lastTab",System.currentTimeMillis());
|
||||||
|
|
||||||
|
if(System.currentTimeMillis() - pc.getTimestamps().get("lastTab") < 100)
|
||||||
|
Logger.error("USE OF /TAR SUSPECTED BY PLAYER: " + pc.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void social(SocialMsg msg, ClientConnection origin) throws MsgSendException {
|
private static void social(SocialMsg msg, ClientConnection origin) throws MsgSendException {
|
||||||
|
|||||||
Reference in New Issue
Block a user