Solved Sign Change Event

Discussion in 'Plugin Development' started by bowlerguy66, Aug 13, 2015.

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

    bowlerguy66

    My plugin makes a join sign when the first line equals "ra" the problem is when the sign gets changed it turns into: [Run Arenar

    Code:
    event.setLine(0, ChatColor.DARK_GRAY + "[" + ChatColor.AQUA + "Run Arena" + ChatColor.RESET + "]");
     
  2. Offline

    Agentleader1

    Don't use chat color reset, that may be a problem. And note the sign's char limit per line.
     
  3. Offline

    bowlerguy66

    Whats the sign's character limit? And also, does ChatColor count as a character.
     
  4. Offline

    Agentleader1

    @bowlerguy66 I do not recall, but if I'm correct, it should be around 47 "|" at max. And no chat color doesn't really count as a char, it just so happens to act weirdly, especially using string builders (from experience). Don't forget to tahg me (typing "@Agentleader1")
     
  5. Offline

    bowlerguy66

  6. @bowlerguy66 What happens if you remove ChatColor.RESET ?
     
  7. Online

    CraftCreeper6

    @bowlerguy66
    Use §Colour(The letter or number) E.G: §1 Would be a blue colour.
     
Thread Status:
Not open for further replies.

Share This Page