Compare commits

..

6 Commits

Author SHA1 Message Date
youhavetrouble 023d9b57fe downgraded to 1.13 api version 2020-07-26 17:22:46 +02:00
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
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>eu.endermite</groupId>
<artifactId>CommandWhitelist</artifactId>
<version>1.0.1</version>
<version>1.0.4</version>
<packaging>jar</packaging>
<name>CommandWhitelist</name>
@@ -26,7 +26,9 @@ public class PlayerCommandPreProcess implements Listener {
if (player.hasPermission("commandwhitelist.commands." + s.getKey())) {
for (String comm : s.getValue()) {
comm = comm.toLowerCase();
if (command.startsWith("/" + comm)) {
if (command.equalsIgnoreCase("/"+comm))
return;
else if (command.startsWith("/" + comm + " ")) {
return;
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
name: CommandWhitelist
version: ${project.version}
main: eu.endermite.commandwhitelist.CommandWhitelist
api-version: 1.16
api-version: 1.13
authors: [YouHaveTrouble]
description: Control what commands players can use
permissions: