Improved action use transform log.
Contributed by Sahar.
This commit is contained in:
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -125,7 +125,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation());
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -128,7 +128,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation());
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket
|
|||||||
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0))
|
||||||
{
|
{
|
||||||
client.sendPacket(ActionFailed.STATIC_PACKET);
|
client.sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().orElse(null));
|
LOGGER.warning("Player " + player + " used action which he does not have! Id = " + _actionId + " transform: " + player.getTransformation().get().getId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user