Open Swedz opened 8 years ago
From the stack trace, it looks like API.getUniqueIdentifier().getName(uuid)
is returning null instead of a string. This causes Fanciful to complain because you're feeding that null value to FancyMessage.text()
, which requires its argument to be a string. Maybe try checking API.getUniqueIdentifier().getName(uuid)
to make sure it's doing what you want.
I'm 100% sure it's working fine, it always returns a valid value unless the value specified is not in the database.
Hey!
I really love Fanciful, and I need to make a beginning message,
"§e* (10) ["
And then add more string after that inside of a loop.But when I do this:
fm.text(API.getUniqueIdentifier().getName(uuid)) .color(ChatColor.YELLOW) .suggest(uuid) .tooltip("§f" + API.getUniqueIdentifier().getName(uuid) + "'s UUID:","§b" + uuid);
It gives an IllegalArgumentException: