Skip to content

Instantly share code, notes, and snippets.

@Azuxul
Created November 19, 2015 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Azuxul/7310544b62b6fc14f1e8 to your computer and use it in GitHub Desktop.
Save Azuxul/7310544b62b6fc14f1e8 to your computer and use it in GitHub Desktop.
@EventHandler
public void onBlockPlace(BlockPlaceEvent event) {
if(event.getItemInHand().getType().equals(Material.SKULL_ITEM)) {
SkullMeta meta = (SkullMeta) event.getItemInHand().getItemMeta();
String owner = meta.getOwner();
}
}
// Azuxul 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment