dynmap icon indicating copy to clipboard operation
dynmap copied to clipboard

[Request] Assert visibility protocol

Open phaed-one opened this issue 14 years ago • 3 comments

"In general, I'm thinking that the protocol would be an 'assert invisibility' that would be applied or released by each plugin opting to do so, with the result being that you're hidden if you're configured to be hidden (standard API) OR if one or more plugins are asserting that you should be."

phaed-one avatar Feb 08 '12 05:02 phaed-one

Added new assertPlayerInvisbility() API to DynmapAPI and DynmapCommonAPI. Supports a transient set of plugin-keyed assertions as to which players are invisible, causing a player to be hidden IF they are configured to be hidden (via existing API and /dynmap hide command) OR if one more more plugins assert that they are invisible. Assertions are not use counted - plugins are responsible for tracking their own setting and clearing of their assertion. Assertions will be cleared on a /reload or other server restart.

mikeprimm avatar Feb 08 '12 07:02 mikeprimm

Great :D. Thanks!

phaed-one avatar Feb 08 '12 14:02 phaed-one

I'm planning on releasing 0.31 'very soon' (maybe tonight) - please let me know if the code in the dev build is working for you.

mikeprimm avatar Feb 08 '12 15:02 mikeprimm