Skip to main content

corpse_admin_command

Registers a staff command to inspect and clear the corpses currently in the world.

Fields

FieldTypeDefaultDescription
commandStringcorpsesCommand to register, without the leading slash.
permissionStringtypewriter.corpse.adminPermission required to run it.

Subcommands

SubcommandDescription
listLists every loaded corpse with its owner, location, item count and stored experience.
clearRemoves every loaded corpse.

Notes

  • clear removes corpses without firing on_corpse_expire, so cleaning up does not apply death penalties to players.
  • clear discards the items the corpses held. Use it on a world that is being reset, not as routine maintenance.

How could this be used?

Check what a player left behind before helping them recover it, or clear corpses stuck in a world that is about to be reset.