Modification for use spigot 1.8 (gamemode 3 for spectator)
.