private static CommandMap getCommandMap() {
        try {
            return (CommandMap) COMMAND_MAP_FIELD.get(Bukkit.getServer().getPluginManager());
        } catch (Exception e) {
            throw new RuntimeException("Could not get CommandMap", e);
        }
    }
Utility for interacting with the server's {@link CommandMap} instance.
helper/src/main/java/me/lucko/helper/utils/CommandMapUtil.java