Compare commits

..

5 Commits

Author SHA1 Message Date
youhavetrouble eb13e174e9 Merge remote-tracking branch 'origin/master' 2020-07-22 19:46:16 +02:00
youhavetrouble c2dd36d13b Merge remote-tracking branch 'origin/master' 2020-07-22 19:46:09 +02:00
youhavetrouble be4d8d21c0 Merge remote-tracking branch 'origin/master' 2020-07-22 19:45:36 +02:00
youhavetrouble 26b05aef7b improved command execution check 2020-07-22 19:45:27 +02:00
youhavetrouble 687fd0867b improved command execution check 2020-07-22 19:44:55 +02:00
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>eu.endermite</groupId> <groupId>eu.endermite</groupId>
<artifactId>CommandWhitelist</artifactId> <artifactId>CommandWhitelist</artifactId>
<version>1.0.1</version> <version>1.0.3</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>CommandWhitelist</name> <name>CommandWhitelist</name>
@@ -26,7 +26,9 @@ public class PlayerCommandPreProcess implements Listener {
if (player.hasPermission("commandwhitelist.commands." + s.getKey())) { if (player.hasPermission("commandwhitelist.commands." + s.getKey())) {
for (String comm : s.getValue()) { for (String comm : s.getValue()) {
comm = comm.toLowerCase(); comm = comm.toLowerCase();
if (command.startsWith("/" + comm)) { if (command.equalsIgnoreCase("/"+comm))
return;
else if (command.startsWith("/" + comm + " ")) {
return; return;
} }
} }