From 05c57df3c0cc1a9244747e44305fd140f0da9297 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 30 Oct 2019 02:03:43 +0000 Subject: [PATCH] Improved action use transform log. Contributed by Sahar. --- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- .../gameserver/network/clientpackets/RequestActionUse.java | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 8c6452d53d..209089d2a8 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -125,7 +125,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 5901e7db01..478cdb097a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -128,7 +128,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } } diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java index 57eb9edc59..1599f8b589 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/RequestActionUse.java @@ -93,7 +93,7 @@ public class RequestActionUse implements IClientIncomingPacket if (!(Arrays.binarySearch(allowedActions, _actionId) >= 0)) { 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; } }