Strange bug with colored text in written books

Discussion in 'Plugin Development' started by mstiles92, May 5, 2013.

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

    mstiles92

    I have a bug with one of my plugins, BookRules. Color codes are getting replaced with different characters inside books for some users, but not everyone. It seems that they can type up a book with colors and add it to the plugin, then they can get a copy of the book just fine. The problem only occurs after using the plugin's reload command or rebooting the server.
    I have looked over all of my code and can not seem to find anything that would cause this. I also can not seem to reproduce this bug on either of my computers, which is making it extremely difficult to hunt down the cause. Could someone please look over my code and see if I am missing something? The source is available on my Github here.
     
  2. Offline

    devilquak

    mstiles92

    How do you parse colors into the pages?
     
  3. Offline

    mstiles92

    I don't do any parsing, color codes are handled by books in vanilla minecraft with the § symbol. My plugin stores and loads the strings exactly as input in the game, including the § characters. The plugin never changes the books, it stores an exact copy of the contents of each book. This is why I can't seem to pin down the bug, nothing in my plugin should be changing the pages of the books.
     
  4. Offline

    FreezzMC

    I am experiencing the same bug. I have been trying to find it's cause but I think it's just in the Essentials jar, we can't fix it.
     
Thread Status:
Not open for further replies.

Share This Page