public VanishManager(final VanishPlugin plugin) {
this.plugin = plugin;
this.announceManipulator = new VanishAnnounceManipulator(this.plugin);
this.plugin.getServer().getScheduler().scheduleSyncRepeatingTask(this.plugin, this.showPlayer, 4, 4);
this.plugin.getServer().getMessenger().registerIncomingPluginChannel(this.plugin, "vanishStatus", new PluginMessageListener() {
@Override
public void onPluginMessageReceived(String channel, Player player, byte[] message) {
if (channel.equals("vanishStatus") && new String(message).equals("check")) {
player.sendPluginMessage(plugin, "vanishStatus", VanishManager.this.isVanished(player) ? new byte[] { 0x01 } : new byte[] { 0x00 });
}