Reimplement vanish command

- SuperVanish has a wack permission system, and it didn't work in some rare circumstances. Added back TFMs vanish with the SuperVanish API
- Fixed the permission nodes so admins can see other admins, like how it was in TFM
This commit is contained in:
2020-08-13 14:34:03 -05:00
parent 541abb1ba8
commit e294ef8312
7 changed files with 48 additions and 11 deletions

View File

@ -35,6 +35,7 @@ public class VanishBridge extends FreedomService
}
else
{
plugin.al.messageAllAdmins(ChatColor.GOLD + player.getName() + " unvanished and is now visible to all players.");
FUtil.bcastMsg(plugin.rm.craftLoginMessage(event.getPlayer(), null));
plugin.dc.messageChatChannel("**" + player.getName() + " joined the server" + "**");
}
@ -53,7 +54,7 @@ public class VanishBridge extends FreedomService
Player player = event.getPlayer();
if (event.isSilent())
{
plugin.al.messageAllAdmins(ChatColor.GOLD + player.getName() + " silently vanished.");
plugin.al.messageAllAdmins(ChatColor.GOLD + player.getName() + " vanished and is now only visible to admins.");
}
else
{