This plugin enables server admins to setup simple randomly selected rewards for their users when they vote. This plugin currently only supports NuVotifier for Sponge. It requires an Economy plugin to be installed. (I may make this configurable in the future.) In short - this plugin executes two random commands from a list you specify as well as randomly pays the player an amount in a specified range.
You can head over to the GitHub page to grab the latest build of SimpleVotifierListener here.
If you’d like to check out the code, you can do so here.
/votifierlistener - Main command of plugin, it will return the version installed.
/votifierlistener addreward <command> - Adds command as a possible reward.
/votifierlistener removereward <command> - Removes command as a possible reward.
/votifierlistener addlink <link> - Adds vote link.
/vote - Lists all links in a list (they are clickable).
So where’s the correct version? I’ll see if reverting to the older version works.
Digging deeper into Java… not my favorite language (but not my least) and the way mods are loaded… it would seem you have an issue with order. Sponge loads the mods by filename and alpha-numeric… or numeric alpha for that matter. Renamed the NuVotifier jar file with a 01 in front of it… and it fixed my issue… It’s the same fix for the “other post” I referenced as well. That’s a sponge bug… it needs better dependency handling.
Your right alphabetically but not case wise… Upper case files get listed first after files that start with numbers… So NuVotifier can capitalize his jar file or you can lowercase yours. Basically directly listing is just being used for load order. So whatever filesystem order is defined for displaying files is the order they will be loaded… Numbers, Capitals by Alpha, Lower by Alpha. They need to write a simple init system.