Essentials vanish support
AggerTV opened this issue ยท 2 comments
Hello, could you make it so that the plugin hooks into essentialsx, and then doesn't send the join/quit message if the player is vanished?
I took a look into it, but I can not promise if I will be able to implement it in the next time. Because I don't have much free time at the moment.
Notices for myself:
1. The plugin would be able to hock into the Essential IUser and find out if the player is hidden/vanished (https://github.com/EssentialsX/Essentials/blob/d75787726c4869bd5bf338d3f3295c5e8dd6b15a/Essentials/src/main/java/com/earth2me/essentials/IUser.java) There is a bool `IUser. isHidden()`
2. The should be "fake" join and leave messages when the player (un-) vanishes. This can be done with the two Events `PostPlayerShowEvent` and `PlayerHideEvent`
3. I need to check if I am able to send to fake messages only to normal players and not players with higher perms, but I don't want to implement permisions for this. I think using the existing permission `essentials.vanish.see` can be reused (https://essinfo.xeya.me/permissions.html)
4. EssentialsX has a Maven Repo (https://essentialsx.net/wiki/Common-Issues.html)
@AggerTV Today I had a bit more time than usual and I implemented the EssentialsX Hock. I was not able to test the implementation. I really would appreciate it if you are able to test it. You are able to download the release candidate right here https://github.com/4ndyZ/JoinMessagePlus/releases/tag/v3.4-rc1