Fixed player casting, and modified getLocation for entity.

This fixes a bug where commandSender could not be cast to a player object, also fixes a bug where getting an entity location would throw an NPE and also would not contain the world object. Both fixes have been tested and work.