diff --git a/src/main/java/org/maxgamer/quickshop/Command/QS.java b/src/main/java/org/maxgamer/quickshop/Command/QS.java index 8fa44d51d..8ab786c69 100644 --- a/src/main/java/org/maxgamer/quickshop/Command/QS.java +++ b/src/main/java/org/maxgamer/quickshop/Command/QS.java @@ -637,6 +637,7 @@ public class QS implements CommandExecutor{ } if(pendingShops.size()==0) { sender.sendMessage(MsgUtil.getMessage("not-looking-at-shop")); + return; } }else { sender.sendMessage(MsgUtil.getMessage("not-looking-at-shop")); diff --git a/src/main/java/org/maxgamer/quickshop/Command/Tab.java b/src/main/java/org/maxgamer/quickshop/Command/Tab.java index 9d2f31984..760195905 100644 --- a/src/main/java/org/maxgamer/quickshop/Command/Tab.java +++ b/src/main/java/org/maxgamer/quickshop/Command/Tab.java @@ -78,7 +78,7 @@ public class Tab implements TabCompleter { return tabList; }else if(args.length==3){ if (args[1].equals("staff")&&sender.hasPermission("quickshop.staff")) { - if(args[2].equals("add")||args.equals("del")) { + if(args[2].equals("add")||args[2].equals("del")) { if(plugin.getConfig().getBoolean("include-offlineplayer-list")) { //Include for(OfflinePlayer offlinePlayer : Bukkit.getOfflinePlayers()) { diff --git a/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java b/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java index 646adf997..6f2e01d1f 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java +++ b/src/main/java/org/maxgamer/quickshop/Util/MsgUtil.java @@ -211,7 +211,7 @@ public class MsgUtil { messagei18n.set("shop-staff-added", "&aSuccessfully add {0} to your shop staffs."); messagei18n.set("shop-staff-deleted", "&aSuccessfully remove {0} to your shop staffs."); messagei18n.set("command.wrong-args", "&cParameters not matched, use /qs help to check help"); - messagei18n.set("command.description.staff", "&cManage your shop staffs."); + messagei18n.set("command.description.staff", "&eManage your shop staffs."); messagei18n.set("unknown-player", "&cTarget player not exist, please check username your typed."); messagei18n.set("language-version", 12); selectedVersion = 12; diff --git a/src/main/resources/messages-en.yml b/src/main/resources/messages-en.yml index 81bac4981..cdc68ec66 100644 --- a/src/main/resources/messages-en.yml +++ b/src/main/resources/messages-en.yml @@ -116,7 +116,7 @@ command: no-amount-given: "&cNo amount given. Use &a/qs refill &c" now-debuging: "&aSuccessfully switch to production mode, Reloading QuickShop..." now-nolonger-debuging: "&aSuccessfully switch to developer mode, Reloading QuickShop..." - wrong-args: "&cParameter not matched, use /qs help to check help" + wrong-args: "&cParameters not matched, use /qs help to check help" description: title: "&aQuickShop Help" unlimited: "&eMakes a shop unlimited"