Changing who a PlayerHead belongs to?

Discussion in 'Plugin Development' started by ChrisStarr32, Apr 22, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ChrisStarr32

    Is it possible to change the texture on a PlayerHead block to who is in an arraylist?

    Something like
    Code:java
    1. ArrayList<UUID> arena = new ArrayList<UUID>();
    2. Player player = bukkit.getPlayer(arena.get(0));
    3. //get head block x,y,z then change the head to 'player' head?


    Thanks,
    Chris
     
  2. Offline

    Regablith

    You could try getting the location of the head, breaking it, and spawning in a new one w/ that player's head.
     
  3. Offline

    ChrisStarr32

  4. Offline

    Regablith

    ChrisStarr32 Not sure off the top of my head, sorry :p Just try to mess around with different things inside the listener for setting the head.
     
  5. Offline

    stink123456

    Just change the meta of the playerhead to have the player as owner.
     
Thread Status:
Not open for further replies.

Share This Page