class SpigotMap implements PlatformMap {

    @Override
    public @Nullable DispatcherCommand unregister(String name) {
        var commands = map.getKnownCommands();
        var command = commands.get(name);
        if (!(command instanceof DispatcherCommand)) {
            return null;
        }
        
        commands.remove(name, command);
        commands.remove(prefix + ":" + name, command);
        
        for (var alias : command.getAliases()) {
            commands.remove(alias, command);
            commands.remove(prefix + ":" + alias, command);
        }
        
        command.unregister(map);
        
        return (DispatcherCommand) command;
    }

      SpigotMap(String prefix, Plugin plugin, CraftCommandMap map);

}