mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 11:46:40 +00:00
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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user