Package net.fateuhc.plugin.team
Class Team
java.lang.Object
net.fateuhc.plugin.team.Team
The data that is kept for a team.
-
Constructor Summary
Constructors -
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()
-
-
Method Details
-
getOwner
public org.bukkit.entity.Player getOwner()Get the owner of the team.- Returns:
Playerinstance of the owner
-
getMembers
Get the uuid of the members of the party. -
getPlayerParties
Get the player parties. -
getId
public int getId()Get the ID of the team.- Returns:
Integer
-
getKills
public int getKills()Get the amount of kills the team has.- Returns:
Integer
-
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
Get the formatting for the team.- Returns:
String
-
isAlive
public boolean isAlive()Is the team still alive?- Returns:
Boolean
-
increaseKills
public void increaseKills()Increase the amount of kills the team has. -
getOnlinePlayers
Get a list of the online players. -
getOnlineMembers
Get a list of the online players.- Returns:
ListofPlayers
-
sendTeamMessage
Send a message to the team.- Parameters:
message- The message you wish to send.usePrefix- Should the prefix be added on?
-
isFull
public boolean isFull()Is the team full?- Returns:
Boolean
-