#How do I disable the /kubejs reload server_scripts command?

5 messages · Page 1 of 1 (latest)

rocky waveBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

icy void
#

ServerEvents.command(event=>{

    let command = event.commandName;
    console.log("Current Command", command);

    let raidDatabaseJson = event.server.persistentData.getString("raidDatabase");
    let raidDatabase = new Map(JSON.parse(raidDatabaseJson));
    if (raidDatabase.size > 0) {
        event.server.tell(Text.of("Cannot reload scripts while raids are active."));
        event.exit();
    }
}) 

ionic saffron
#

why do u need to disable it?
just tell your server OPs not to use it lol

icy void
#

I am making modpack if users want to change something, then I would like to make everything work like a Swiss watch.

#

When running the proposed script, the command still works.