Skip to content

Adds helper methods to generate player heads in Minecraft as well as supporting player head drops in PvP

License

Notifications You must be signed in to change notification settings

STEMCraft/SC-Player-Heads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STEMMechanics

STEMCraft Player Heads

This plugin enables support for other plugins to create player heads as well as adds the feature of a players head being dropped in the world when both players are in the survival game mode.

Methods

getPlayerHead

Returns an ItemStack containing the head of the player requested, or null if it could not be created.

Arguments

player: The player to create a player head of in an ItemStack. Can be a Player object or String playerName.

Examples

PlayerHeads playerHeadsPlugin = Bukkit.getServer().getPluginManager().getPlugin("SC-Player-Heads");
Player nomadjimbob = Bukkit.getServer().getPlayer("nomadjimbob");
ItemStack playerHead = playerHeadsPlugin.getPlayerHead(nomadjimbob);

-----

PlayerHeads playerHeadsPlugin = Bukkit.getServer().getPluginManager().getPlugin("SC-Player-Heads");
ItemStack playerHead = playerHeadsPlugin.getPlayerHead("nomadjimbob");

Changes

1.0

  • Initial release

Get in touch!

Learn more about what we're doing at stemmechanics.com.au.

👋 @STEMMechanics

About

Adds helper methods to generate player heads in Minecraft as well as supporting player head drops in PvP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages