Isn't this possible. I mean if the effect is added. Just make a faux ability with the code already in bukkit. Code: for(Player players: this.getServer().getOnlinePlayers()){ players.hidePlayer(player); } //on adding the effect. for(Player players: getServer().getOnlinePlayers()){ players.canSee(player); } //on the effects wearing off. //and a listener for @SuppressWarnings("deprecation") @EventHandler public void onEntityTarget(EntityTargetEvent event){ if(event.getTarget() instanceof Player){ Player player = (Player) event.getTarget(); Collection<PotionEffect> active = player.getActivePotionEffects(); Iterator<PotionEffect> iterator = active.iterator(); while(iterator.hasNext()){ if(iterator.next().getType().equals(PotionEffectType.INVISIBILITY)) event.setCancelled(true); } } } The only other thing I wish I could add is a PotionEffectStartEvent and a PotionEffectEndEvent. Never been too strong with pull requests otherwise I'd shoot this to you guys.
The forums are not a great place to request these types of things. Please use leaky.bukkit.org. Pull requests are a huge help, but aren't required. However, it can make the process much faster if we have existing code to work on so we have the best understanding of what you would like to see, so we can take the best approach to implementing the idea. See http://forums.bukkit.org/threads/i-implemented-a-noteplayevent.79921/ for a great example.
I put a few things on leaky mostly just bugs and stacktraces. I didn't really know a better place to put my idea out there. My last few hands at a pull request, I accidentally force updated every file. So it really wasn't that effective. Eclipse is a bit confusing with its Pull Push Fetch with its Branch Head and commit methods, in my opinion. Still getting the hang of it, but I do see what your saying. I was mostly going off the information I went off when I tapped that resource and saw that this is an easy fix for the depreciation. It may not be implemented but having a fix in hand is better than saying its there but does nothing at all.