From 01e6351194f1c004f3cc9ffcfbf683aebb32113c Mon Sep 17 00:00:00 2001 From: Intelli Date: Thu, 10 Feb 2022 19:26:27 -0700 Subject: [PATCH] Fixed "drop/pickup/deposit/withdraw" actions being incorrectly mapped --- src/main/java/net/coreprotect/command/CommandHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/coreprotect/command/CommandHandler.java b/src/main/java/net/coreprotect/command/CommandHandler.java index 91f5668..2124619 100755 --- a/src/main/java/net/coreprotect/command/CommandHandler.java +++ b/src/main/java/net/coreprotect/command/CommandHandler.java @@ -124,12 +124,12 @@ public class CommandHandler implements CommandExecutor { result.add(4); // container result.add(11); // item } - else if (argument.equals("-inv") || argument.equals("inv-") || argument.equals("-inventory") || argument.equals("inventory-") || argument.equals("-inventories") || argument.equals("drop") || argument.equals("drops") || argument.equals("deposit") || argument.equals("deposits") || argument.equals("deposited")) { + else if (argument.equals("-inv") || argument.equals("inv-") || argument.equals("-inventory") || argument.equals("inventory-") || argument.equals("-inventories")) { result.add(4); result.add(11); result.add(0); } - else if (argument.equals("+inv") || argument.equals("inv+") || argument.equals("+inventory") || argument.equals("inventory+") || argument.equals("+inventories") || argument.equals("pickup") || argument.equals("pickups") || argument.equals("withdraw") || argument.equals("withdraws") || argument.equals("withdrew")) { + else if (argument.equals("+inv") || argument.equals("inv+") || argument.equals("+inventory") || argument.equals("inventory+") || argument.equals("+inventories")) { result.add(4); result.add(11); result.add(1); @@ -137,11 +137,11 @@ public class CommandHandler implements CommandExecutor { else if (argument.equals("item") || argument.equals("items")) { result.add(11); } - else if (argument.equals("-item") || argument.equals("item-") || argument.equals("-items") || argument.equals("items-")) { + else if (argument.equals("-item") || argument.equals("item-") || argument.equals("-items") || argument.equals("items-") || argument.equals("drop") || argument.equals("drops") || argument.equals("deposit") || argument.equals("deposits") || argument.equals("deposited")) { result.add(11); result.add(0); } - else if (argument.equals("+item") || argument.equals("item+") || argument.equals("+items") || argument.equals("items+")) { + else if (argument.equals("+item") || argument.equals("item+") || argument.equals("+items") || argument.equals("items+") || argument.equals("pickup") || argument.equals("pickups") || argument.equals("withdraw") || argument.equals("withdraws") || argument.equals("withdrew")) { result.add(11); result.add(1); }