Commit b902fa6f authored by KingRainbow44's avatar KingRainbow44
Browse files

Fix command detection

parent d7328dda
...@@ -34,7 +34,7 @@ public final class Grasscutter { ...@@ -34,7 +34,7 @@ public final class Grasscutter {
private static DispatchServer dispatchServer; private static DispatchServer dispatchServer;
private static GameServer gameServer; private static GameServer gameServer;
public static final Reflections reflector = new Reflections(); public static final Reflections reflector = new Reflections("emu.grasscutter");
static { static {
// Declare logback configuration. // Declare logback configuration.
......
...@@ -11,6 +11,7 @@ import java.util.*; ...@@ -11,6 +11,7 @@ import java.util.*;
public final class CommandMap { public final class CommandMap {
private final Map<String, CommandHandler> commands = new HashMap<>(); private final Map<String, CommandHandler> commands = new HashMap<>();
private final Map<String, Command> annotations = new HashMap<>(); private final Map<String, Command> annotations = new HashMap<>();
public CommandMap() { public CommandMap() {
this(false); this(false);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment