Closed cdohara closed 2 years ago
Should be fixed with this build.
I don't know which decompiler you have used, but this looks like it is failing to correctly read the class. In case you are interested, the problem was that I for some reason forgot to set a name for the RESET color code in the MessageColor class.
I started replacing all usages of Bukkit's ChatColor with my own MessageColor back when RGB support was added, so that I can start adding support for RGB colors, I haven't had the time to add it everywhere, but for most parts it should work already. Also since the plugin still supports MC 1.8 relying on a lot of features from Bukkit/Spigot becomes more and more of an issue.
Information
Environment information Plugin + server version info:
Online mode: no
BungeeCord: no
Server/crash log
Plugin config: Default config for version 2.5.4-release
Details
Description
Error occurs during tab completion as evident by the console logs.
Steps to reproduce
Use
/marry setcolor
to reproduce.Expected behavior
I expected it to not produce an error.
Other information (e.g. detailed explanation, related issues, suggestions how to fix, links for us to have context, screenshots, etc.) This is just a guess since I'm not familiar with the code nor the Spigot API, but it seems the MessageColor class could be the culprit.
Upon disassembling
MessageColor.class
, I noticed the following:Instead, relying on Spigot's ChatColor (https://hub.spigotmc.org/javadocs/spigot/org/bukkit/ChatColor.html) may potentially work.