org.kitteh.vanish.VanishPlugin Java Examples
The following examples show how to use
org.kitteh.vanish.VanishPlugin.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PlayerManager.java From NovaGuilds with GNU General Public License v3.0 | 5 votes |
/** * Checks if a player is vanished * * @param player player * @return boolean */ public boolean isVanished(Player player) { return player != null && (plugin.getDependencyManager().isEnabled(Dependency.VANISHNOPACKET) && plugin.getDependencyManager().get(Dependency.VANISHNOPACKET, VanishPlugin.class).getManager().isVanished(player) || plugin.getDependencyManager().isEnabled(Dependency.ESSENTIALS) && plugin.getDependencyManager().get(Dependency.ESSENTIALS, Essentials.class).getVanishedPlayers().contains(player.getName())); }