jpenilla / squaremap-addons

Various addons for squaremap
12 stars 13 forks source link

Add fallback to vanished metadata (Resolves #51) #52

Closed Phoenix616 closed 1 year ago

Phoenix616 commented 1 year ago

This adds a fallback vanish-status-adapter which uses the vanished metadata value (used by several plugins like VanishNoPacket and Essentials too) to get whether or not a player should be hidden. Due to there not being any event when a metadata value is changed we need to check that in a repeating task. (Which will only run if no compatible plugin is detected though)

Phoenix616 commented 1 year ago

Looks good but I think we are missing a registerEvents(this, this) in onEnable

You are right, I'm pretty sure I had that at some point. 🤔 I'll add it again.