Vanish No Packet

Vanish No Packet

855k Downloads

How do i make it so my staff are notified when they join their in vanish?

JamesJeffersxn opened this issue ยท 4 comments

commented

I just set up vansihnopacket and i need to know how do i notify my staff automatically when they join?

commented

There is a permission vanish.statusupdates to notify permission players.

You can also write a Bukkit plugin with this code:

@EventHandler
public void onVanishStatusChange(VanishStatusChangeEvent e) {
    for (Player player : Bukkit.getOnlinePlayers()) {
        if (player.isOp) { // you can also check permission
            player.sendMessage(e.getName() + "'s vanish is " + e.isVanishing());
        }
    }
}
commented

I'd probably vote for the permission node vanish.statusupdates over writing an entire plugin just to replicate that functionality :P

commented

Due to #608 I will restate:

Grant the node vanish.statusupdates