Interface ITeam
public interface ITeam
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArmorEnchantment
(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == armor.void
addBaseEffect
(org.bukkit.potion.PotionEffectType pef, int amp, int duration) Used when someone buys a new potion effect with apply == basevoid
addBowEnchantment
(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a bew enchantment with apply == bow.void
addPlayers
(org.bukkit.entity.Player... players) Add a new member to the team.void
addSwordEnchantment
(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == sword.void
addTeamEffect
(org.bukkit.potion.PotionEffectType pef, int amp, int duration) Used when someone buys a new potion effect with apply == membersvoid
defaultSword
(org.bukkit.entity.Player p, boolean value) Restore lost default sword.void
destroyBedHolo
(org.bukkit.entity.Player player) Deprecated.void
Destroy team data when the arena restarts.void
firstSpawn
(org.bukkit.entity.Player p) Spawn a player for the first spawn.Get queued traps for a team.getArena()
Get the team arena.Get enchantments to be applied on armors.List<org.bukkit.potion.PotionEffect>
Get list of effects that you gen when you enter the base.org.bukkit.Location
getBed()
Get bed location.Get enchantments to be applied on bows.getColor()
Get team color.getDisplayName
(Language language) Get team display name.int
Get team dragons amount for the sudden death phase.Deprecated.Get team generators.Deprecated.Runtime identifier.Deprecated.org.bukkit.util.Vector
Get the location where enemy items are dropped after you kill him.List<org.bukkit.entity.Player>
Get alive team members.List<org.bukkit.entity.Player>
Deprecated.getName()
Get team name.org.bukkit.Location
getShop()
Get shop keeper location.int
getSize()
Get team current size.org.bukkit.Location
getSpawn()
Get team spawn location.Get enchantments to be applied on swords.org.bukkit.Location
Get team upgrades location.Get list of team upgrades.boolean
isBed
(org.bukkit.Location location) Check if bed is placed at given location.boolean
Check if team's bed was destroyed.boolean
isMember
(org.bukkit.entity.Player player) Check if is member.default void
onBedDestroy
(org.bukkit.Location location) What happens when one of team beds is destroyed at given location.void
reJoin
(org.bukkit.entity.Player p) Rejoin a team.void
reJoin
(org.bukkit.entity.Player p, int respawnTime) Rejoin a team.void
respawnMember
(org.bukkit.entity.Player p) Respawn a member.void
sendArmor
(org.bukkit.entity.Player p) Equip a player with default armor.void
sendDefaultInventory
(org.bukkit.entity.Player p, boolean clear) Gives the start inventoryvoid
setBedDestroyed
(boolean bedDestroyed) This will also disable team generators if true.void
setDragons
(int amount) Set a team dragons amount for the sudden death phase.void
setEmeraldGenerator
(IGenerator emeraldGenerator) Deprecated.void
setKillDropsLocation
(org.bukkit.util.Vector location) Change the location where to drop items after you kill an enemy.void
Spawn shopkeepers for target team (if enabled).boolean
Check if target has played in this match.
-
Method Details
-
getIdentity
UUID getIdentity()Runtime identifier. -
getColor
TeamColor getColor()Get team color. -
getName
String getName()Get team name. -
getDisplayName
Get team display name.- Parameters:
language
- get the display name in target language.
-
isMember
boolean isMember(org.bukkit.entity.Player player) Check if is member.- Parameters:
player
- target player.
-
getArena
IArena getArena()Get the team arena. -
getMembers
List<org.bukkit.entity.Player> getMembers()Get alive team members. -
defaultSword
void defaultSword(org.bukkit.entity.Player p, boolean value) Restore lost default sword.- Parameters:
p
- target player.value
- true to give the sword.
-
getBed
org.bukkit.Location getBed()Get bed location. -
getTeamUpgradeTiers
ConcurrentHashMap<String,Integer> getTeamUpgradeTiers()Get list of team upgrades. Upgrade identifier, tier. -
getBowsEnchantments
List<TeamEnchant> getBowsEnchantments()Get enchantments to be applied on bows. -
getSwordsEnchantments
List<TeamEnchant> getSwordsEnchantments()Get enchantments to be applied on swords. -
getArmorsEnchantments
List<TeamEnchant> getArmorsEnchantments()Get enchantments to be applied on armors. -
getSize
int getSize()Get team current size. -
addPlayers
void addPlayers(org.bukkit.entity.Player... players) Add a new member to the team. Be careful! This will cache players on this team until the game is finished so you can retrieve who played here withwasMember(UUID)
.- Parameters:
players
- players to be added.
-
firstSpawn
void firstSpawn(org.bukkit.entity.Player p) Spawn a player for the first spawn.- Parameters:
p
- target player.
-
spawnNPCs
void spawnNPCs()Spawn shopkeepers for target team (if enabled). -
reJoin
void reJoin(org.bukkit.entity.Player p) Rejoin a team.- Parameters:
p
- target player.
-
reJoin
void reJoin(org.bukkit.entity.Player p, int respawnTime) Rejoin a team.- Parameters:
p
- target player.respawnTime
- the time until the player should respawn.
-
sendDefaultInventory
void sendDefaultInventory(org.bukkit.entity.Player p, boolean clear) Gives the start inventory- Parameters:
p
- target player.clear
- true to clear inventory.
-
respawnMember
void respawnMember(org.bukkit.entity.Player p) Respawn a member. This is after respawn countdown.- Parameters:
p
- target player.
-
sendArmor
void sendArmor(org.bukkit.entity.Player p) Equip a player with default armor.- Parameters:
p
- target player.
-
addTeamEffect
void addTeamEffect(org.bukkit.potion.PotionEffectType pef, int amp, int duration) Used when someone buys a new potion effect with apply == members- Parameters:
pef
- effect.amp
- amplifier.duration
- duration.
-
addBaseEffect
void addBaseEffect(org.bukkit.potion.PotionEffectType pef, int amp, int duration) Used when someone buys a new potion effect with apply == base- Parameters:
pef
- effect.amp
- amplifier.duration
- duration.
-
getBaseEffects
List<org.bukkit.potion.PotionEffect> getBaseEffects()Get list of effects that you gen when you enter the base. -
addBowEnchantment
void addBowEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a bew enchantment with apply == bow.- Parameters:
e
- enchant.a
- amplifier.
-
addSwordEnchantment
void addSwordEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == sword.- Parameters:
e
- enchant.a
- amplifier.
-
addArmorEnchantment
void addArmorEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == armor.- Parameters:
e
- enchant.a
- amplifier.
-
wasMember
Check if target has played in this match.- Parameters:
u
- player uuid.
-
isBedDestroyed
boolean isBedDestroyed()Check if team's bed was destroyed.- Returns:
- true if players are no longer able to respawn.
-
getSpawn
org.bukkit.Location getSpawn()Get team spawn location.- Returns:
- spawn point.
-
getShop
org.bukkit.Location getShop()Get shop keeper location.- Returns:
- shop point.
-
getTeamUpgrades
org.bukkit.Location getTeamUpgrades()Get team upgrades location.- Returns:
- upgrades point.
-
setBedDestroyed
void setBedDestroyed(boolean bedDestroyed) This will also disable team generators if true.- Parameters:
bedDestroyed
- team members will no longer be able to respawn if you set this to true.
-
getIronGenerator
Deprecated.Get team iron generator.- Returns:
- generator.
-
getGoldGenerator
Deprecated.Get team gold generator.- Returns:
- generator.
-
getEmeraldGenerator
Deprecated.Get team emerald generator.- Returns:
- NULL if team does not have an emerald generator yet.
-
setEmeraldGenerator
Deprecated.Set a team emerald generator.- Parameters:
emeraldGenerator
- generator.
-
getGenerators
List<IGenerator> getGenerators()Get team generators.- Returns:
- team generators.
-
getDragons
int getDragons()Get team dragons amount for the sudden death phase. -
setDragons
void setDragons(int amount) Set a team dragons amount for the sudden death phase. -
getMembersCache
Deprecated. -
destroyData
void destroyData()Destroy team data when the arena restarts. This must be called by BedWars1058 only. -
destroyBedHolo
Deprecated.Destroy bed hologram for player- Parameters:
player
- target player.
-
getActiveTraps
LinkedList<EnemyBaseEnterTrap> getActiveTraps()Get queued traps for a team.- Returns:
- active traps list.
-
getKillDropsLocation
org.bukkit.util.Vector getKillDropsLocation()Get the location where enemy items are dropped after you kill him.- Returns:
- x, y, z.
-
setKillDropsLocation
void setKillDropsLocation(org.bukkit.util.Vector location) Change the location where to drop items after you kill an enemy.- Parameters:
location
- x,y,z.
-
isBed
boolean isBed(org.bukkit.Location location) Check if bed is placed at given location. Or partial. -
onBedDestroy
default void onBedDestroy(org.bukkit.Location location) What happens when one of team beds is destroyed at given location.
-