mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2024-11-30 01:43:22 +01:00
Fixed fallback command "/shopchest:shop"
This commit is contained in:
parent
cdb862d435
commit
bae02c910a
@ -48,7 +48,7 @@ class ShopCommand extends BukkitCommand {
|
|||||||
plugin.debug("Registering command " + command.getName());
|
plugin.debug("Registering command " + command.getName());
|
||||||
|
|
||||||
Object commandMap = plugin.getServer().getClass().getMethod("getCommandMap").invoke(plugin.getServer());
|
Object commandMap = plugin.getServer().getClass().getMethod("getCommandMap").invoke(plugin.getServer());
|
||||||
commandMap.getClass().getMethod("register", String.class, Command.class).invoke(commandMap, "shop", command);
|
commandMap.getClass().getMethod("register", String.class, Command.class).invoke(commandMap, "shopchest", command);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user