SafeSpectate
SafeSpectate
This plugin will allow users to go into spectator mode if they have the permission node SafeSpectator.spectate and once they do /spectate it will put them into spectator mode, then once you do /spectate again, it will set your gamemode back to Survival, and teleport you back to where you were before you did the command. If the player disconnects they will be brought back to their original location before they did /spectate and their Gamemode will be set to Survival. Doing /specother will toggle spectating for another player if they have the SafeSpectate.spectate.Other if a user has SafeSpectate.bypass it will disable teleportation to the original /spectate location
Permission Nodes
SafeSpectate.spectate
- description: allows the user to perform /spectate or /spec
SafeSpectate.bypass
- description: If you have this permission, going back into survival mode or disconnecting will NOT teleport you back to your original location,
SafeSpectate.spectate.other
- description: Allows the player to turn spectating on/off for another player. ( Allows using /specother )
Commands
/spectate
- Toggles Spectator Mode for yourself.
/spec
- Toggles Spectator Mode for yourself.
/specother [Player]
- Toggles Spectator Mode for another player.
This plugin is only compatible with versions 1.8 and up!
@osky2918
I do not know for certain, sorry. You will have to consult the author.
-deleted-
Would it be possible to add a time limit, as well as an option to turn noClipping on/off?
@Looking7Glass
I think this is caused by OPs having the SafeSpectate.bypass node (see description above under "Permission Nodes" :)
@alexyogos
Firstly, thank you very much for creating this.
Secondly, I don't know why but, when OPs go into spectate mode it doesn't teleport them back to their original spot once they exit spectate. I am using Essentials and PEX, maybe that has something to do with it?
@alexyogos
Cool.
I'll be looking forward to your future releases.
Let me know if you'd like feedback on anything specific.
@Sinuce
I am planning on switching to Config, but I was able to do it without it, so I decided to do it like this for the first release, but I agree a config would work better, I'll also make the messages look a little better, and if I find more bugs, I'll try to fix those too
Feedback
Everything works as intended.
You have made my life easier by 133.7%
Is the plugin supposed to not create a config.yml, though?
Enchancement
I believe SafeSpectate would benefit having SOME kind of configurable options :)
Examples:
- the possibility to disable certain permissions whilst in spectator mode (like for /sethome)
- the possibility to run timed spectator modes before resetting gamemode (like 10 minutes)
Let me know if you find the examples for enhancing SafeSpectate useful :)
I would've made a Ticket, but I see that section has not been activated for SafeSpectate yet ^_^;
UPDATE:
Most of my inspiration is drawn from the old Duties plugin: http://dev.bukkit.org/bukkit-plugins/duties/
Like:
- Configurable messages that are sent when you enter/exit the mode (or that simply reminds you every N seconds you are in the mode).
I've been searching for a plugin like this for a looong time.
Will install and test it in my Bungeecord network now.