From bb08e76fda97dc479cc93b751aa141216fe5918b Mon Sep 17 00:00:00 2001 From: nightw0lv Date: Thu, 14 Jan 2021 23:42:10 +0200 Subject: [PATCH] Small bug fix Vote substring on some packs removes letters --- HighFive/FandC/src/itopz/com/command/VoteCMD.java | 2 +- HighFive/Mythras/src/itopz/com/command/VoteCMD.java | 2 +- HighFive/Remorse/src/itopz/com/command/VoteCMD.java | 2 +- HighFive/Scripts/src/itopz/com/command/VoteCMD.java | 2 +- HighFive/ScriptsZaken/src/itopz/com/command/VoteCMD.java | 2 +- HighFive/aVa/src/itopz/com/command/VoteCMD.java | 2 +- Interlude/Frozen/src/itopz/com/command/VoteCMD.java | 2 +- Interlude/Hellas/src/itopz/com/command/VoteCMD.java | 2 +- Interlude/aCis/src/itopz/com/command/VoteCMD.java | 2 +- Interlude/lucera/src/itopz/com/command/VoteCMD.java | 2 +- .../L2J_Mobius_1.0_Ertheia/src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- Mobius/L2J_Mobius_3.0_Helios/src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../L2J_Mobius_5.0_Salvation/src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../L2J_Mobius_6.0_Fafurion/src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../L2J_Mobius_C6_Interlude/src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- .../src/itopz/com/command/VoteCMD.java | 2 +- Scions of Destiny/Lisvus/src/itopz/com/command/VoteCMD.java | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/HighFive/FandC/src/itopz/com/command/VoteCMD.java b/HighFive/FandC/src/itopz/com/command/VoteCMD.java index 41d741cef..0922ae085 100644 --- a/HighFive/FandC/src/itopz/com/command/VoteCMD.java +++ b/HighFive/FandC/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, Player player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/HighFive/Mythras/src/itopz/com/command/VoteCMD.java b/HighFive/Mythras/src/itopz/com/command/VoteCMD.java index c95608d40..c6f2ddf1b 100644 --- a/HighFive/Mythras/src/itopz/com/command/VoteCMD.java +++ b/HighFive/Mythras/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, Player player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/HighFive/Remorse/src/itopz/com/command/VoteCMD.java b/HighFive/Remorse/src/itopz/com/command/VoteCMD.java index 83043549c..7ec7c8f34 100644 --- a/HighFive/Remorse/src/itopz/com/command/VoteCMD.java +++ b/HighFive/Remorse/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, Player player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/HighFive/Scripts/src/itopz/com/command/VoteCMD.java b/HighFive/Scripts/src/itopz/com/command/VoteCMD.java index eb06897dc..c0698d277 100644 --- a/HighFive/Scripts/src/itopz/com/command/VoteCMD.java +++ b/HighFive/Scripts/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, Player player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/HighFive/ScriptsZaken/src/itopz/com/command/VoteCMD.java b/HighFive/ScriptsZaken/src/itopz/com/command/VoteCMD.java index 3a9c0f8bc..bdc7d5cdd 100644 --- a/HighFive/ScriptsZaken/src/itopz/com/command/VoteCMD.java +++ b/HighFive/ScriptsZaken/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, Player player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/HighFive/aVa/src/itopz/com/command/VoteCMD.java b/HighFive/aVa/src/itopz/com/command/VoteCMD.java index dd25a7d33..80f711b66 100644 --- a/HighFive/aVa/src/itopz/com/command/VoteCMD.java +++ b/HighFive/aVa/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, Player player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Interlude/Frozen/src/itopz/com/command/VoteCMD.java b/Interlude/Frozen/src/itopz/com/command/VoteCMD.java index 8c554ee80..60e9a1e46 100644 --- a/Interlude/Frozen/src/itopz/com/command/VoteCMD.java +++ b/Interlude/Frozen/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, L2PcInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Interlude/Hellas/src/itopz/com/command/VoteCMD.java b/Interlude/Hellas/src/itopz/com/command/VoteCMD.java index 7dc9eb3e4..cb5b4ee9d 100644 --- a/Interlude/Hellas/src/itopz/com/command/VoteCMD.java +++ b/Interlude/Hellas/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, L2PcInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Interlude/aCis/src/itopz/com/command/VoteCMD.java b/Interlude/aCis/src/itopz/com/command/VoteCMD.java index a95c50918..8058f9936 100644 --- a/Interlude/aCis/src/itopz/com/command/VoteCMD.java +++ b/Interlude/aCis/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(final String command, final Player player) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Interlude/lucera/src/itopz/com/command/VoteCMD.java b/Interlude/lucera/src/itopz/com/command/VoteCMD.java index 4dd96cfad..c673bd1f6 100644 --- a/Interlude/lucera/src/itopz/com/command/VoteCMD.java +++ b/Interlude/lucera/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, Player player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_1.0_Ertheia/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_1.0_Ertheia/src/itopz/com/command/VoteCMD.java index b6510ddd1..0cd0b4b0c 100644 --- a/Mobius/L2J_Mobius_1.0_Ertheia/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_1.0_Ertheia/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_2.5_Underground/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_2.5_Underground/src/itopz/com/command/VoteCMD.java index bfe182bde..6db2d8fd8 100644 --- a/Mobius/L2J_Mobius_2.5_Underground/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_2.5_Underground/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_3.0_Helios/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_3.0_Helios/src/itopz/com/command/VoteCMD.java index 686f08be5..8afd72ff0 100644 --- a/Mobius/L2J_Mobius_3.0_Helios/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_3.0_Helios/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_4.0_GrandCrusade/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_4.0_GrandCrusade/src/itopz/com/command/VoteCMD.java index 3fb787a64..f6bdacc4d 100644 --- a/Mobius/L2J_Mobius_4.0_GrandCrusade/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_4.0_GrandCrusade/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_5.0_Salvation/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_5.0_Salvation/src/itopz/com/command/VoteCMD.java index d016475b5..ba3127664 100644 --- a/Mobius/L2J_Mobius_5.0_Salvation/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_5.0_Salvation/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_5.5_EtinasFate/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_5.5_EtinasFate/src/itopz/com/command/VoteCMD.java index b144243cd..af32d0ea9 100644 --- a/Mobius/L2J_Mobius_5.5_EtinasFate/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_5.5_EtinasFate/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_6.0_Fafurion/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_6.0_Fafurion/src/itopz/com/command/VoteCMD.java index e50802660..c6525339c 100644 --- a/Mobius/L2J_Mobius_6.0_Fafurion/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_6.0_Fafurion/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_7.0_PreludeOfWar/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_7.0_PreludeOfWar/src/itopz/com/command/VoteCMD.java index a8cbdc3f3..13a352e8a 100644 --- a/Mobius/L2J_Mobius_7.0_PreludeOfWar/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_7.0_PreludeOfWar/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_C4_ScionsOfDestiny/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_C4_ScionsOfDestiny/src/itopz/com/command/VoteCMD.java index 7b10bb9f8..ab9f927aa 100644 --- a/Mobius/L2J_Mobius_C4_ScionsOfDestiny/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_C4_ScionsOfDestiny/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_C6_Interlude/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_C6_Interlude/src/itopz/com/command/VoteCMD.java index f27a816e1..cb9411a08 100644 --- a/Mobius/L2J_Mobius_C6_Interlude/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_C6_Interlude/src/itopz/com/command/VoteCMD.java @@ -73,7 +73,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_CT_2.4_Epilogue/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_CT_2.4_Epilogue/src/itopz/com/command/VoteCMD.java index 91704d095..7953097ca 100644 --- a/Mobius/L2J_Mobius_CT_2.4_Epilogue/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_CT_2.4_Epilogue/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_CT_2.6_HighFive/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_CT_2.6_HighFive/src/itopz/com/command/VoteCMD.java index 2a75e1abb..f4a7c85ab 100644 --- a/Mobius/L2J_Mobius_CT_2.6_HighFive/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_CT_2.6_HighFive/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_Classic_2.0_Saviors/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_Classic_2.0_Saviors/src/itopz/com/command/VoteCMD.java index 618367bab..a167faf53 100644 --- a/Mobius/L2J_Mobius_Classic_2.0_Saviors/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_Classic_2.0_Saviors/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_Classic_2.1_Zaken/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_Classic_2.1_Zaken/src/itopz/com/command/VoteCMD.java index 0ecf66ac4..8a49d91ac 100644 --- a/Mobius/L2J_Mobius_Classic_2.1_Zaken/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_Classic_2.1_Zaken/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_Classic_2.2_Antharas/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_Classic_2.2_Antharas/src/itopz/com/command/VoteCMD.java index 4fb9a5317..b5ee23d4f 100644 --- a/Mobius/L2J_Mobius_Classic_2.2_Antharas/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_Classic_2.2_Antharas/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_Classic_2.3_SevenSigns/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_Classic_2.3_SevenSigns/src/itopz/com/command/VoteCMD.java index 3ffdeb538..bd67fb679 100644 --- a/Mobius/L2J_Mobius_Classic_2.3_SevenSigns/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_Classic_2.3_SevenSigns/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_Classic_2.4_SecretOfEmpire/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_Classic_2.4_SecretOfEmpire/src/itopz/com/command/VoteCMD.java index 5745262e9..8d921de3d 100644 --- a/Mobius/L2J_Mobius_Classic_2.4_SecretOfEmpire/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_Classic_2.4_SecretOfEmpire/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_Classic_3.0_TheKamael/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_Classic_3.0_TheKamael/src/itopz/com/command/VoteCMD.java index 71fbd2010..734f1734c 100644 --- a/Mobius/L2J_Mobius_Classic_3.0_TheKamael/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_Classic_3.0_TheKamael/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Mobius/L2J_Mobius_Classic_Interlude/src/itopz/com/command/VoteCMD.java b/Mobius/L2J_Mobius_Classic_Interlude/src/itopz/com/command/VoteCMD.java index 1a7f7c73f..77ab39d66 100644 --- a/Mobius/L2J_Mobius_Classic_Interlude/src/itopz/com/command/VoteCMD.java +++ b/Mobius/L2J_Mobius_Classic_Interlude/src/itopz/com/command/VoteCMD.java @@ -76,7 +76,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, PlayerInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD) diff --git a/Scions of Destiny/Lisvus/src/itopz/com/command/VoteCMD.java b/Scions of Destiny/Lisvus/src/itopz/com/command/VoteCMD.java index da9406680..d62ad967a 100644 --- a/Scions of Destiny/Lisvus/src/itopz/com/command/VoteCMD.java +++ b/Scions of Destiny/Lisvus/src/itopz/com/command/VoteCMD.java @@ -75,7 +75,7 @@ public class VoteCMD implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, L2PcInstance player, String s1) { - final String TOPSITE = command.substring(1).toUpperCase(); + final String TOPSITE = command.replace(".", "").toUpperCase(); // check if allowed the individual command to run if (TOPSITE.equals("ITOPZ") && !Configurations.ITOPZ_INDIVIDUAL_REWARD)