1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

fix command permission error...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-10-18 12:01:28 +08:00
parent 714ce2fa32
commit b409fcc32f
4 changed files with 4 additions and 3 deletions

View File

@ -19,8 +19,8 @@ public class CommandBuy extends BaseCommand {
public CommandBuy(final QuickShop plugin) { public CommandBuy(final QuickShop plugin) {
super("buy"); super("buy");
this.plugin = plugin; this.plugin = plugin;
setPermission("quickshop.create.buy");
setOnlyPlayerExecutable(); setOnlyPlayerExecutable();
setPermission("quickshop.create.buy");
setDescription(MsgUtil.p("command.description.buy")); setDescription(MsgUtil.p("command.description.buy"));
} }

View File

@ -19,7 +19,7 @@ public class CommandEmpty extends BaseCommand {
public CommandEmpty(final QuickShop plugin) { public CommandEmpty(final QuickShop plugin) {
super("empty"); super("empty");
this.plugin = plugin; this.plugin = plugin;
setPermission("quickshop.refill"); setPermission("quickshop.empty");
setDescription(MsgUtil.p("command.description.empty")); setDescription(MsgUtil.p("command.description.empty"));
} }

View File

@ -19,6 +19,7 @@ public class CommandUnlimited extends BaseCommand {
super("unlimited"); super("unlimited");
this.plugin = plugin; this.plugin = plugin;
setOnlyPlayerExecutable(); setOnlyPlayerExecutable();
setPermission("quickshop.unlimited");
setDescription(MsgUtil.p("command.description.unlimited")); setDescription(MsgUtil.p("command.description.unlimited"));
} }

View File

@ -1,4 +1,4 @@
Version: 1.2 Version: 1.4
not-looking-at-shop: '&c没找到快捷商店. 你必须看着那个商店.' not-looking-at-shop: '&c没找到快捷商店. 你必须看着那个商店.'
no-permission: '&4你没有此命令的权限.' no-permission: '&4你没有此命令的权限.'