Item colors are not stored properly #856


  • New
  • Defect
Open
Assigned to kellerkindt
  • RoboMWM created this issue May 9, 2016

    If you don't answer these questions, your ticket will be DECLINED. You may remove this line.

    What steps will reproduce the problem?
    1. Setup a shop that sells an item with colors in its displayname/lore
    2. Restart server (or whatever reloads SCS's config
    3. Observe SCS either saving/loading colors incorrectly

    What is the expected output? What do you see instead?
    http://i.imgur.com/KCHlk32.png
    http://i.imgur.com/29i8ewe.png
    http://i.imgur.com/1SP3j6E.png
    It also shows like this in the config, with the ? in place of where I'd assume a section code symbol should be.

    What SCS version are you using? We don't accept "latest"!
    766

    (i.e. attempting to directly save the section code symbol, instead of using the escaped version). Potential fixes are to either store the escaped version, or use ChatColor.translatealternatesymbols (however it's named) and store an ampersand or similar.

  • RoboMWM added the tags New Defect May 9, 2016
  • RoboMWM edited description May 9, 2016
  • RoboMWM posted a comment May 9, 2016

    Turns out I forgot to add the utf-8 arg to this server. Either way, here's some suggested fixes nonetheless.

    https://www.spigotmc.org/threads/solved-utf-8-in-config-yml.57879/


To post a comment, please login or register a new account.