milkywayz/EntityManager — pull request #3 by Mitsugaru (2012-06-12 17:16:33+00:00)
Title: Permissions changes

Uses new PermissionHandler class, that hooks into Vault if available. If Vault is not available, then it uses regular SuperPerms.

PermissionHandler is callable anywhere as all the methods are static. It is initialized onEnable. All of the old hasPermission() calls have been replaced to utilize the new PermissionHandler class.

PermissionNode enumeration is used as a static reference to all possible permission nodes. This reduces the chance of permission node typos as the actual literal string is only referenced once and in one location, rather than scattered around.

Also, made all the packages lowercase. Changed an option in the commands, where it lists the options, to do it all in-line, rather than have a reference of a new object / primitive.

Other than the above, no major changes to the logic of the plugin. I would urge you to actually test it though, just to make sure I didn't make any mistakes.