You can create the sidebar and then call my method to set a nickname/prefix. It should still work as long as you're doing 1 scoreboard per player.
I made a method for someone needing help on Spigot awhile ago, here, try this: public void setNick(Player player, String nick) { for (Player...
I'm not, I'm simply stating that a wrapper can serve many purposes that may be plausible to use in a plugin of this nature.
A wrapper allows you to store more variables that in the end can cause no harm. For example, storing a ban reason, a ban duration, etc.
Updated previously reply.
Check out my scoreboard API for some example code. https://github.com/Alexandeh/Glaedr I create an Entry object that stores all the variables...
Yeah, basically. Wouldn't work as scoreboards support negative scores too, as well as 0.
That'll work.
When you send the initial string, store it. When you want to update the line, check if the initially stored string is not null and reset it, then...
Use a PlayerWrapper and a Set that stores the object. Grab the PlayerWrapper and through the wrapper you can access it's variables, etc.
Make sure to mark the thread as solved. :)
Use my API: https://github.com/Alexandeh/Glaedr
In your on disable for both plugins, disable the other plugin?
I'm using the same version to compile as the server is running.
It's a large plugin, would take awhile to show you all the code. There is nothing in the stacktrace that focuses on any part of my code. Here is...
Separate names with a comma.