Interface ITeam
public interface ITeam
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddArmorEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == armor.voidaddBaseEffect(org.bukkit.potion.PotionEffectType pef, int amp, int duration) Used when someone buys a new potion effect with apply == basevoidaddBowEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a bew enchantment with apply == bow.voidaddPlayers(org.bukkit.entity.Player... players) Add a new member to the team.voidaddSwordEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == sword.voidaddTeamEffect(org.bukkit.potion.PotionEffectType pef, int amp, int duration) Used when someone buys a new potion effect with apply == membersvoiddefaultSword(org.bukkit.entity.Player p, boolean value) Restore lost default sword.voiddestroyBedHolo(org.bukkit.entity.Player player) Deprecated.voidDestroy team data when the arena restarts.voidfirstSpawn(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.LocationgetBed()Get bed location.Get enchantments to be applied on bows.getColor()Get team color.getDisplayName(Language language) Get team display name.intGet team dragons amount for the sudden death phase.Deprecated.Get team generators.Deprecated.Runtime identifier.Deprecated.org.bukkit.util.VectorGet 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.LocationgetShop()Get shop keeper location.intgetSize()Get team current size.org.bukkit.LocationgetSpawn()Get team spawn location.Get enchantments to be applied on swords.org.bukkit.LocationGet team upgrades location.Get list of team upgrades.booleanisBed(org.bukkit.Location location) Check if bed is placed at given location.booleanCheck if team's bed was destroyed.booleanisMember(org.bukkit.entity.Player player) Check if is member.default voidonBedDestroy(org.bukkit.Location location) What happens when one of team beds is destroyed at given location.voidreJoin(org.bukkit.entity.Player p) Rejoin a team.voidreJoin(org.bukkit.entity.Player p, int respawnTime) Rejoin a team.voidrespawnMember(org.bukkit.entity.Player p) Respawn a member.voidsendArmor(org.bukkit.entity.Player p) Equip a player with default armor.voidsendDefaultInventory(org.bukkit.entity.Player p, boolean clear) Gives the start inventoryvoidsetBedDestroyed(boolean bedDestroyed) This will also disable team generators if true.voidsetDragons(int amount) Set a team dragons amount for the sudden death phase.voidsetEmeraldGenerator(IGenerator emeraldGenerator) Deprecated.voidsetKillDropsLocation(org.bukkit.util.Vector location) Change the location where to drop items after you kill an enemy.voidSpawn shopkeepers for target team (if enabled).booleanCheck if target has played in this match.
- 
Method Details- 
getIdentityUUID getIdentity()Runtime identifier.
- 
getColorTeamColor getColor()Get team color.
- 
getNameString getName()Get team name.
- 
getDisplayNameGet team display name.- Parameters:
- language- get the display name in target language.
 
- 
isMemberboolean isMember(org.bukkit.entity.Player player) Check if is member.- Parameters:
- player- target player.
 
- 
getArenaIArena getArena()Get the team arena.
- 
getMembersList<org.bukkit.entity.Player> getMembers()Get alive team members.
- 
defaultSwordvoid defaultSword(org.bukkit.entity.Player p, boolean value) Restore lost default sword.- Parameters:
- p- target player.
- value- true to give the sword.
 
- 
getBedorg.bukkit.Location getBed()Get bed location.
- 
getTeamUpgradeTiersConcurrentHashMap<String,Integer> getTeamUpgradeTiers()Get list of team upgrades. Upgrade identifier, tier.
- 
getBowsEnchantmentsList<TeamEnchant> getBowsEnchantments()Get enchantments to be applied on bows.
- 
getSwordsEnchantmentsList<TeamEnchant> getSwordsEnchantments()Get enchantments to be applied on swords.
- 
getArmorsEnchantmentsList<TeamEnchant> getArmorsEnchantments()Get enchantments to be applied on armors.
- 
getSizeint getSize()Get team current size.
- 
addPlayersvoid 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.
 
- 
firstSpawnvoid firstSpawn(org.bukkit.entity.Player p) Spawn a player for the first spawn.- Parameters:
- p- target player.
 
- 
spawnNPCsvoid spawnNPCs()Spawn shopkeepers for target team (if enabled).
- 
reJoinvoid reJoin(org.bukkit.entity.Player p) Rejoin a team.- Parameters:
- p- target player.
 
- 
reJoinvoid reJoin(org.bukkit.entity.Player p, int respawnTime) Rejoin a team.- Parameters:
- p- target player.
- respawnTime- the time until the player should respawn.
 
- 
sendDefaultInventoryvoid sendDefaultInventory(org.bukkit.entity.Player p, boolean clear) Gives the start inventory- Parameters:
- p- target player.
- clear- true to clear inventory.
 
- 
respawnMembervoid respawnMember(org.bukkit.entity.Player p) Respawn a member. This is after respawn countdown.- Parameters:
- p- target player.
 
- 
sendArmorvoid sendArmor(org.bukkit.entity.Player p) Equip a player with default armor.- Parameters:
- p- target player.
 
- 
addTeamEffectvoid 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.
 
- 
addBaseEffectvoid 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.
 
- 
getBaseEffectsList<org.bukkit.potion.PotionEffect> getBaseEffects()Get list of effects that you gen when you enter the base.
- 
addBowEnchantmentvoid addBowEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a bew enchantment with apply == bow.- Parameters:
- e- enchant.
- a- amplifier.
 
- 
addSwordEnchantmentvoid addSwordEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == sword.- Parameters:
- e- enchant.
- a- amplifier.
 
- 
addArmorEnchantmentvoid addArmorEnchantment(org.bukkit.enchantments.Enchantment e, int a) Used when someone buys a new enchantment with apply == armor.- Parameters:
- e- enchant.
- a- amplifier.
 
- 
wasMemberCheck if target has played in this match.- Parameters:
- u- player uuid.
 
- 
isBedDestroyedboolean isBedDestroyed()Check if team's bed was destroyed.- Returns:
- true if players are no longer able to respawn.
 
- 
getSpawnorg.bukkit.Location getSpawn()Get team spawn location.- Returns:
- spawn point.
 
- 
getShoporg.bukkit.Location getShop()Get shop keeper location.- Returns:
- shop point.
 
- 
getTeamUpgradesorg.bukkit.Location getTeamUpgrades()Get team upgrades location.- Returns:
- upgrades point.
 
- 
setBedDestroyedvoid 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.
 
- 
getIronGeneratorDeprecated.Get team iron generator.- Returns:
- generator.
 
- 
getGoldGeneratorDeprecated.Get team gold generator.- Returns:
- generator.
 
- 
getEmeraldGeneratorDeprecated.Get team emerald generator.- Returns:
- NULL if team does not have an emerald generator yet.
 
- 
setEmeraldGeneratorDeprecated.Set a team emerald generator.- Parameters:
- emeraldGenerator- generator.
 
- 
getGeneratorsList<IGenerator> getGenerators()Get team generators.- Returns:
- team generators.
 
- 
getDragonsint getDragons()Get team dragons amount for the sudden death phase.
- 
setDragonsvoid setDragons(int amount) Set a team dragons amount for the sudden death phase.
- 
getMembersCacheDeprecated.
- 
destroyDatavoid destroyData()Destroy team data when the arena restarts. This must be called by BedWars1058 only.
- 
destroyBedHoloDeprecated.Destroy bed hologram for player- Parameters:
- player- target player.
 
- 
getActiveTrapsLinkedList<EnemyBaseEnterTrap> getActiveTraps()Get queued traps for a team.- Returns:
- active traps list.
 
- 
getKillDropsLocationorg.bukkit.util.Vector getKillDropsLocation()Get the location where enemy items are dropped after you kill him.- Returns:
- x, y, z.
 
- 
setKillDropsLocationvoid setKillDropsLocation(org.bukkit.util.Vector location) Change the location where to drop items after you kill an enemy.- Parameters:
- location- x,y,z.
 
- 
isBedboolean isBed(org.bukkit.Location location) Check if bed is placed at given location. Or partial.
- 
onBedDestroydefault void onBedDestroy(org.bukkit.Location location) What happens when one of team beds is destroyed at given location.
 
-