Fixed player casting, and modified getLocation for entity.
Merge pull request #54 from tritania/fixes

Fixed player casting, and modified getLocation for entity.
Inventory click event (whew), and bugfixes needed to make that happen
Merge branch 'master' of http://github.com/GraniteTeam/Granite
Very simple permissions system. THIS SHOULD IN NOW WAY BE USED LIKE A PERMISSIONS PLUGIN!