milkywayz/EntityManager — pull request #4 by Mitsugaru (2012-06-12 19:18:05+00:00)
Title: Permissions changes and cleanup

Had to resolve some conflicts. To the best of my knowledge, it has been fixed. However, due to this fact, I would ask that you do some testing to make sure that everything is in order.

In the process of the merge, I was able to remove the unnecessary class / binary files from the repository.

Original change log:

----

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.