public interface DisguiseAPI
Bukkit.getServicesManager().getRegistration(DisguiseAPI.class).getProvider();
Modifier and Type | Method and Description |
---|---|
boolean |
disguise(org.bukkit.OfflinePlayer player,
Disguise disguise)
Disguise a player (may be offline).
|
boolean |
disguise(org.bukkit.OfflinePlayer player,
Disguise disguise,
boolean fireEvent)
Disguise a player (may be offline).
|
void |
disguiseToAll(org.bukkit.entity.Player player,
Disguise disguise)
Deprecated.
replaced by
disguise(OfflinePlayer, Disguise) |
Disguise |
getDisguise(org.bukkit.OfflinePlayer player)
Get a copy of a player's current disguise.
|
Disguise |
getDisguise(org.bukkit.entity.Player player)
Deprecated.
replaced by
getDisguise(OfflinePlayer) |
int |
getOnlineDisguiseCount()
Counts the amount of online players who are disguised.
|
Sounds |
getSoundsForEntity(DisguiseType type)
Gets the
Sounds for a specific entity type. |
boolean |
isDisguised(org.bukkit.OfflinePlayer player)
Check whether a player is disguised.
|
boolean |
isDisguised(org.bukkit.entity.Player player)
Deprecated.
replaced by
isDisguised(OfflinePlayer) |
boolean |
isSoundsEnabled()
Indicates whether the disguised players' sounds are currently replaced.
|
void |
setSoundsEnabled(boolean enabled)
Sets whether the disguised players' sounds are replaced.
|
boolean |
setSoundsForEntity(DisguiseType type,
Sounds sounds)
Sets the
Sounds for a specific entity type. |
boolean |
undisguise(org.bukkit.OfflinePlayer player)
Undisguise a player (may be offline).
|
boolean |
undisguise(org.bukkit.OfflinePlayer player,
boolean fireEvent)
Undisguise a player (may be offline).
|
void |
undisguiseAll()
Undisguise everyone.
|
void |
undisguiseToAll(org.bukkit.entity.Player player)
Deprecated.
replaced by
undisguise(OfflinePlayer) |
@Deprecated void disguiseToAll(org.bukkit.entity.Player player, Disguise disguise)
disguise(OfflinePlayer, Disguise)
player
- the player to disguisedisguise
- the disguise@Deprecated void undisguiseToAll(org.bukkit.entity.Player player)
undisguise(OfflinePlayer)
player
- the player to undisguiseboolean disguise(org.bukkit.OfflinePlayer player, Disguise disguise)
disguise(player, disguise)
is equivalent to calling disguise(player, disguise, true)
.player
- the player (or offline player) to disguisedisguise
- the disguisefalse
, in case the DisguiseEvent has been cancelledboolean disguise(org.bukkit.OfflinePlayer player, Disguise disguise, boolean fireEvent)
player
- the player (or offline player) to disguisedisguise
- the disguisefireEvent
- whether a DisguiseEvent should be fired (event may be cancelled by other plugins)false
, in case the DisguiseEvent has been cancelledboolean undisguise(org.bukkit.OfflinePlayer player)
undisguise(player)
is equivalent to calling undisguise(player, true)
.player
- the player (or offline player) to undisguisefalse
, in case the UndisguiseEvent has been cancelledboolean undisguise(org.bukkit.OfflinePlayer player, boolean fireEvent)
player
- the player (or offline player) to undisguisefireEvent
- whether an UndisguiseEvent should be fired (event may be cancelled by other plugins)false
, in case the UndisguiseEvent has been cancelledvoid undisguiseAll()
@Deprecated boolean isDisguised(org.bukkit.entity.Player player)
isDisguised(OfflinePlayer)
player
- the player to checkboolean isDisguised(org.bukkit.OfflinePlayer player)
player
- the player (or offline player) to checktrue
, if the player is disguised@Deprecated Disguise getDisguise(org.bukkit.entity.Player player)
getDisguise(OfflinePlayer)
player
- the playerDisguise getDisguise(org.bukkit.OfflinePlayer player)
player
- the player (or offline player)int getOnlineDisguiseCount()
Sounds getSoundsForEntity(DisguiseType type)
Sounds
for a specific entity type.type
- the entity/disguise typeboolean setSoundsForEntity(DisguiseType type, Sounds sounds)
Sounds
for a specific entity type.type
- the entity/disguise typesounds
- the soundstrue
, if the sounds have been setboolean isSoundsEnabled()
true
, if they are replacedvoid setSoundsEnabled(boolean enabled)
enabled
- true
, if they shall be replaced