Class Team
java.lang.Object
net.fateuhc.plugin.team.Team
The data that is kept for a team.
-
Constructor Summary
ConstructorsConstructorDescriptionTeam(org.bukkit.entity.Player owner, int id) Internal — constructed by the FateUHC plugin. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.ChatColorGet the team's chat colour.Get the formatting for the team.intgetId()Get the ID of the team.intgetKills()Get the amount of kills the team has.Get the uuid of the members of the party.List<org.bukkit.entity.Player> Get a list of the online players.Get a list of the online players.org.bukkit.entity.PlayergetOwner()Get the owner of the team.Get the player parties.org.bukkit.LocationGet the scatter location for the team.org.bukkit.inventory.InventoryGet the shared team inventory.voidIncrease the amount of kills the team has.booleanisAlive()Is the team still alive?booleanisFull()Is the team full?voidsendTeamMessage(String message, boolean usePrefix) Send a message to the team.voidsetScatterLocation(org.bukkit.Location location) Set the scatter location for the team.
-
Constructor Details
-
Team
public Team(org.bukkit.entity.Player owner, int id) Internal — constructed by the FateUHC plugin.
-
-
Method Details
-
getOwner
public org.bukkit.entity.Player getOwner()Get the owner of the team.- Returns:
Playerinstance of the owner
-
getMembers
-
getPlayerParties
-
getId
-
getKills
-
getTeamInv
public org.bukkit.inventory.Inventory getTeamInv()Get the shared team inventory.- Returns:
Inventory
-
getScatterLocation
public org.bukkit.Location getScatterLocation()Get the scatter location for the team.- Returns:
Location
-
setScatterLocation
public void setScatterLocation(org.bukkit.Location location) Set the scatter location for the team.- Parameters:
location- The location the team will scatter in.
-
getChatColor
public org.bukkit.ChatColor getChatColor()Get the team's chat colour.- Returns:
ChatColor
-
getFormatting
-
isAlive
-
increaseKills
public void increaseKills()Increase the amount of kills the team has. -
getOnlinePlayers
-
getOnlineMembers
-
sendTeamMessage
Send a message to the team.- Parameters:
message- The message you wish to send.usePrefix- Should the prefix be added on?
-
isFull
-