Fixed bug from #1109.
Improved gamemode-permission.
Some small fixes.