Grant Permissions while vanished
shankomaster opened this issue ยท 6 comments
Hey there, I use MagicSpells and it supplies a permission node to become untargettable by its spells. I would like to see a feature on VanishNoPacket that lets us choose some permission nodes to give vanished players, then removes them when they unvanish. This way it can easily hook into stuff like magicspells and allow others to customize the plugin. Another use would be to give negative perms perhaps to vanished players. This could be used for things like Mob Arena to prevent a vanished player from joining and stuff like that where a player is forced to quit mid-game after they realize they forgot to unvanish! Thanks for the consideration.
This feature would pair-up great with plugins that also have untoggleable admin stealth features that are not desirable at all times.
An example such as herochat, which says 'no-one hears you' when no player is around and you attempt a local-confined chat . You can grant a node to be so the message appears despite your presence, but it gets annoying having to explain that to people 10 times a day
An easy way to implement this would be to add a configurable command to run in the server console upon vanish / unvanish of the player. You (the server administrator) could then implement a group in your permissions manager, "Vanished", and configure vanish itself to add and remove players from that group when they vanish or unvanish by executing the appropriate command for your permissions manager.
This can be achieved with CommandHelper, but would require a small amount of reading into the scripting language it uses. Personally, I re-implemented part of the chat plugin in CommandHelper, taking into account whether individuals could see each other to prevent a lack of 'no-one hears you' exposing admins.
sure thing!