Fixed bug in FunctionHelper.getPlayerLookingSpot. References #1109
Started implementing protection gamemode-permissions.