removed
Last edited:
hmm. I'll take a look, thanks.Within 1.8+ there is a part of the Gamemode enum called "SPECTATOR"
So you would do
Code:public void setSpectator(Player p) { p.setGamemode(Gamemode.SPECTATOR); }
And apply it from there.
From there the player can't interact with the world, breaking blocks, go through walls etc
Hope I helped![]()
I've asked both on bukkit forums and spigot forums. No one seems to know how. That is why the title says last resortThis is a developer forum: https://www.spigotmc.org/
