My Last resort

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Irantwomiles

Check my signature for a new Practice plugin
Premium
Feedback score
3
Posts
1,263
Reactions
570
Resources
0
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 :)
hmm. I'll take a look, thanks.
 
Status
This thread has been locked.
Top