From b409fcc32f2b2c1e0f372e04b2d7bc0eba3985ce Mon Sep 17 00:00:00 2001 From: j502647092 Date: Sun, 18 Oct 2015 12:01:28 +0800 Subject: [PATCH] fix command permission error... Signed-off-by: j502647092 --- src/main/java/org/maxgamer/QuickShop/Command/CommandBuy.java | 2 +- src/main/java/org/maxgamer/QuickShop/Command/CommandEmpty.java | 2 +- .../java/org/maxgamer/QuickShop/Command/CommandUnlimited.java | 1 + src/main/resources/messages.yml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/maxgamer/QuickShop/Command/CommandBuy.java b/src/main/java/org/maxgamer/QuickShop/Command/CommandBuy.java index dc53493..22c2f71 100644 --- a/src/main/java/org/maxgamer/QuickShop/Command/CommandBuy.java +++ b/src/main/java/org/maxgamer/QuickShop/Command/CommandBuy.java @@ -19,8 +19,8 @@ public class CommandBuy extends BaseCommand { public CommandBuy(final QuickShop plugin) { super("buy"); this.plugin = plugin; - setPermission("quickshop.create.buy"); setOnlyPlayerExecutable(); + setPermission("quickshop.create.buy"); setDescription(MsgUtil.p("command.description.buy")); } diff --git a/src/main/java/org/maxgamer/QuickShop/Command/CommandEmpty.java b/src/main/java/org/maxgamer/QuickShop/Command/CommandEmpty.java index efdc0a2..5060f9a 100644 --- a/src/main/java/org/maxgamer/QuickShop/Command/CommandEmpty.java +++ b/src/main/java/org/maxgamer/QuickShop/Command/CommandEmpty.java @@ -19,7 +19,7 @@ public class CommandEmpty extends BaseCommand { public CommandEmpty(final QuickShop plugin) { super("empty"); this.plugin = plugin; - setPermission("quickshop.refill"); + setPermission("quickshop.empty"); setDescription(MsgUtil.p("command.description.empty")); } diff --git a/src/main/java/org/maxgamer/QuickShop/Command/CommandUnlimited.java b/src/main/java/org/maxgamer/QuickShop/Command/CommandUnlimited.java index 3b8dc4b..26d2d22 100644 --- a/src/main/java/org/maxgamer/QuickShop/Command/CommandUnlimited.java +++ b/src/main/java/org/maxgamer/QuickShop/Command/CommandUnlimited.java @@ -19,6 +19,7 @@ public class CommandUnlimited extends BaseCommand { super("unlimited"); this.plugin = plugin; setOnlyPlayerExecutable(); + setPermission("quickshop.unlimited"); setDescription(MsgUtil.p("command.description.unlimited")); } diff --git a/src/main/resources/messages.yml b/src/main/resources/messages.yml index 8f9be15..b5de14e 100644 --- a/src/main/resources/messages.yml +++ b/src/main/resources/messages.yml @@ -1,4 +1,4 @@ -Version: 1.2 +Version: 1.4 not-looking-at-shop: '&c没找到快捷商店. 你必须看着那个商店.' no-permission: '&4你没有此命令的权限.'