If is false but it should be true

Discussion in 'Spigot Plugin Development' started by sinnlosername, Jul 5, 2015.

  1. A if is false, but it should be true. I marked the line in onInteract() with a comment.
    Please help. Code: http://pastebin.com/ZRdUH4Fr
  2. Print out the line on the sign and check if it is accurate.
  3. You can use ChatColor#stripColor () to tear the color off a string but you should also get rid of that space at the beginning.
  4. .trim() works wonders for that ;)
  5. Have you tried it without the colour prefix? Additionally please use the method outlined above.