ngc0202/TokenMarket — pull request #1 by ScoreUnder (2012-09-30 05:54:25+00:00)
Title: Stuff

Fixed the bug where people lost their privileges (or whatever was given) when the server restarted.

Also went a bit nuclear on the source (cleanup/restructuring, renaming of unclear classes/fields, generifying, etc), the previous .dat files will be overwritten when this version is first run (because the save file format changed) but aside from that they are now more able to be backwards-compatible, simply due to a version marker.

Commit message
Data -> TokenBlockData
Data2 -> PlayerCommandTimer
Data3 -> QueuedCommands

General cleanup of code, using Maps in place of previous O(n) lookups, using DataOutputStream instead of ObjectOutputStream (sacrificing potential for subclasses for potential for backwards-compatibility), made some methods more generic (i.e. saving methods in TokenMarket), split the listener off into a new class

Fixed a bug that was causing everyone to lose their token-gained
privileges whenever the server restarted, and removed PEX dependency.