#How do I disable the /kubejs reload server_scripts command?
5 messages · Page 1 of 1 (latest)
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();
}
})
why do u need to disable it?
just tell your server OPs not to use it lol