Skip to content

Latest commit

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Corpse


Dead bodies in minecraft for 1.8-1.20.x servers.

Installation

  1. Put the jar in the plugins folder.
  2. Reboot your server. Do not use /reload

Developer Api

publicclassCorpseAPI {
/** * Class method that allows you to use the API. * * @return an instance of this class */@NotNullpublicstaticsynchronizedCorpseAPIgetInstance();
/** * Method that creates a corpse in the player's position and with its skin and inventory * * @return a new Corpse object */publicCorpsespawnCorpse(@NotNullPlayerplayer);
/** * Method that creates a corpse in the given place and with the skin, name and inventory of the * player * * @param location The location where to spawn the corpse * @return a new Corpse object */publicCorpsespawnCorpse(@NotNullPlayerplayer, @NotNullLocationlocation);
/** * Method that creates a corpse in the given place and with the skin and name of the * offlinePlayer * * @param location The location where to spawn the corpse * @return a new Corpse object */publicCorpsespawnCorpse(@NotNullOfflinePlayerofflinePlayer, @NotNullLocationlocation);
/** * Method that creates a corpse in the given place and with the skin and name of the player with a * custom inventory. * * @param location The location where to spawn the corpse * @param helmet The helmet to put on the corpse * @param chestPlate The chestPlate to put on the corpse * @param leggings The leggings to put on the corpse * @param boots The boots to put on the corpse * @return a new Corpse object */publicCorpsespawnCorpse(
@NotNullPlayerplayer,
@NotNullLocationlocation,
@NullableItemStackhelmet,
@NullableItemStackchestPlate,
@NullableItemStackleggings,
@NullableItemStackboots
);
/** * Method that creates a corpse in the given place and with the skin and name of the offlinePlayer * with a custom inventory. * * @param location The location where to spawn the corpse * @param helmet The helmet to put on the corpse * @param chestPlate The chestPlate to put on the corpse * @param leggings The leggings to put on the corpse * @param boots The boots to put on the corpse * @return a new Corpse object */publicCorpsespawnCorpse(
@NotNullOfflinePlayerofflinePlayer,
@NotNullLocationlocation,
@NullableItemStackhelmet,
@NullableItemStackchestPlate,
@NullableItemStackleggings,
@NullableItemStackboots
);
/** * Method that removes a corpse * * @param corpse The corpse to be removed */publicvoidremoveCorpse(@NotNullCorpsecorpse);
}

About

Dead bodies in minecraft for 1.8-1.21.5 servers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages