Getting Entity Custom Name?

Discussion in 'WIP and Development Status' started by eleectricman226, Feb 22, 2014.

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

    eleectricman226

    I'm making a Shope (yes, Shope) plugin, with entity right-clicking to open GUI, but i can't figure out a way to get the custom name. Is there any way to get the custom name? here is the code i'm using
    (its jut a test to see if i can get it to work)
    Code:java
    1. @SuppressWarnings("deprecation")
    2. @EventHandler
    3. public void onPlayerInteractWithEntity(PlayerInteractEntityEvent e){
    4. Player player = e.getPlayer();
    5. Entity ent = e.getRightClicked();
    6. player.sendMessage(ChatColor.GREEN + "You Clicked " + ChatColor.AQUA + ent.getType().getName());
    7.  
    8. }
     
  2. Offline

    Rabrg

    Code:java
    1. ent.getCustomName()
     
Thread Status:
Not open for further replies.

Share This Page