beginReload

fun beginReload(server: MinecraftServer)

Begins a reload cycle by removing all managed commands.

This method should be called at the start of a script reload to clear all previously registered script commands. It removes all managed root commands from the dispatcher and clears the tracking data structures.

Parameters

server

The Minecraft server instance whose command dispatcher will be modified