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你没有此命令的权限.'