Solved Problem with HashTag plugin.

Discussion in 'Spigot Plugin Development' started by TheMasteredPanda, May 28, 2016.

  1. What are you trying to achive?
  2. To get facebooks feature of the hashtag, but instead of it being bold and black with out be yellow.
  3. Splitting and jQuery? What does this have to do with what he is trying to attempt. I will try to reply.
  4. I think you can iterate through the chars of the string. Detect if one is a hashtag, replace the "#" with ChatColor.BOLD + ChatColor.BLUE + "#". Find the next space then add a ChatColor.RESET.
    • Agree Agree x 1
  5. JavaDocs says:
    Also, why not split up the string by it's spaces and search for #'s at the first character?
    • Agree Agree x 1
    • Agree Agree x 1
    • Funny Funny x 1
  7. Ahh ok, I'll try it out. Thanks!