taoneill/karma — pull request #4 by grinning (2012-04-30 20:57:43+00:00)
Title: Configuration = Done, Arbitrary length and Adaptable Configuration = Done

The code is solid, you can change the priority queue implementation of the arbitration in the config reading to an ArrayList, I just feel more comfortable with what I have in the whole idea of a queue structure. You can drag it into the Warhub Server and it should generate exactly what you had the plugin hardcode set to. The Default configuration file is for the warhub.

Documentation:

How To work configuration

Ranks go from top to bottom!

so:

;;;

greybeard;2000;null;DarkGreen
moderator;1000;greybeard;DarkAqua
minimod;500;moderator;Aqua

Note: Group above is just there for dependency purposes with tom's code. It works well but in order for the reader to work it must go from top to bottom, which is much less confusing if you ask me. I don't want to first have to sort it by karma amount then operate on it.

Note 2: Chat Colors are everything in ChatColor enum so ChatColor.DARK_GREEN becomes DarkGreen and ChatColor.GREEN becomes Green

Note 3: There is no exception checking for if one group that is below has more karma than the group above it, I will leave it to the common sense of the people.