Solved Custom Names w/= Help

Discussion in 'Plugin Development' started by Chris32, Apr 6, 2013.

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

    Chris32

    Code:
    if(villager.getCustomName() == "Jerry") { ...
    When this code is executed, the villager's name is Jerry, but it still returns false... I've tried prefixing colors and other things. I've tried logging the information as it's passed and as you can see the names are EXACTLY alike. Please note "Jerry" is actually a variable in my real code. Nothing else is modified in the excerpt.

    This is the info I had printed to the logs.
    Code:
    ... Villager Name - Jerry ||| IF String - Jerry
    Any ideas?

    Thanks in advance.
     
  2. Offline

    Codisimus

  3. Offline

    Chris32

    Codisimus Thanks for that information :D Bookmarked. But sadly, it still does not work. I suspect there is possibly a hidden character in the villager's name... Possible?

    EDIT - Looks like it was a small error on my part. I did some more experimenting, and your mention was the major problem. Thank you very much!
     
Thread Status:
Not open for further replies.

Share This Page