We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daeb02d commit 4288c7bCopy full SHA for 4288c7b
src/main/java/com/saicone/pixelbuy/module/command/BukkitCommand.java
@@ -12,6 +12,7 @@
12
13
public class BukkitCommand {
14
15
+ private static final boolean USE_PREFIX = Bukkit.getServer().getClass().getPackage().getName().startsWith("org.bukkit.craftbukkit.v1_8");
16
private static final CommandMap COMMAND_MAP;
17
private static final MethodHandle COMMANDS;
18
@@ -57,6 +58,9 @@ public static Map<String, Command> all() {
57
58
}
59
60
public static boolean register(@NotNull Command command) {
61
+ if (USE_PREFIX) {
62
+ return map().register("pixelbuy", command);
63
+ }
64
final Map<String, Command> map = all();
65
map.put(command.getName(), command);
66
for (String alias : command.getAliases()) {
0 commit comments