Skip to content

NPCCleanCommand

Package: com.hypixel.hytale.server.npc.commands

public class NPCCleanCommand extends AbstractWorldCommand

Implements /npc clean. Removes all NPC entities from the current world by iterating over all entities with the NPCEntity component type in parallel and issuing removeEntity commands with RemoveReason.REMOVE.

Requires confirmation (requiresConfirmation = true).

public NPCCleanCommand()

Registers as sub-command "clean" with translation key "server.commands.npc.clean.desc".

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.