task.cancel();
}
players.put(player.getName(), new MIPlayer(player, plugin));
if(!player.hasPermission("multiinv.exempt") || !player.hasPermission("multiinv.enderchestexempt")) {
// Let's set a task to run once they get switched to the proper world by bukkit.
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new DeferredWorldCheck(player, this), 1);
}
if(player.hasPermission("multiinv.exempt") && player.hasPermission("multiinv.enderchestexempt")) {
player.sendMessage(ChatColor.GOLD + "[MultiInv] You have the multiinv.exempt and multiinv.enderchestexempt permission nodes.");
player.sendMessage(ChatColor.GOLD + "Your inventory and enderchest contents will not change between worlds.");
}else if(player.hasPermission("multiinv.exempt")) {