diff options
Diffstat (limited to 'spark-bukkit/src')
-rw-r--r-- | spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java index c65bc23..28b7475 100644 --- a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java +++ b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java @@ -44,7 +44,8 @@ import java.util.Map; /** * Utility for interacting with the server's {@link CommandMap} instance. */ -final class CommandMapUtil { +enum CommandMapUtil { + ; private static final Constructor<PluginCommand> COMMAND_CONSTRUCTOR; private static final Field COMMAND_MAP_FIELD; @@ -145,8 +146,4 @@ final class CommandMapUtil { return command; } - private CommandMapUtil() { - throw new UnsupportedOperationException("This class cannot be instantiated"); - } - }
\ No newline at end of file |