public class Team
extends java.lang.Object
| Constructor and Description |
|---|
Team() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(org.bukkit.entity.Player p)
Adds a member to the team
|
void |
broadcast(java.lang.String rawMsg)
Broadcasts a message to all online members in the team.
|
void |
disband()
Disbands the team.
|
org.bukkit.Location |
getHome()
Gets the location of /team home
A != null check is recommended to check if a home exists.
|
short |
getKills()
Returns the number of kills.
|
java.lang.String |
getName()
Returns the name of the team.
|
org.bukkit.inventory.Inventory |
getVault()
Gets and returns the team's vault
|
void |
giveItemToAllMembersOnline(org.bukkit.inventory.ItemStack s)
Gives an item to all online members
|
boolean |
hasInvited(org.bukkit.entity.Player p)
Checks if a player has been invited.
|
void |
invite(org.bukkit.entity.Player p)
Invites a player to a team.
|
void |
promote(Member m)
Demotes the moderator now and promotes the member specified
is in the team
|
void |
removeMember(Member m)
Removes a member from the team
If the member is the moderator of the team,
the whole team gets DISBANDED!
|
void |
sethome(org.bukkit.Location l)
Sets the location for /team home or getHome()
The home can be unset by using sethome(null)
|
void |
setKills(short kills)
Sets the new number kills to the assigned number.
|
public java.lang.String getName()
public void addMember(org.bukkit.entity.Player p)
m - Member to be added in the teamjava.lang.NullPointerException - When the member is nulljava.lang.IllegalArgumentException - When the member already has a teamremoveMember(Member)public void removeMember(Member m)
m - Member to be removedjava.lang.IllegalArgumentException - When the member is not in the teamjava.lang.NullPointerException - When m==nulladdMember(Member)public void promote(Member m)
m - Member to be promotedjava.lang.IllegalArgumentException - When the member is not in the team or the member is a moderatorjava.lang.NullPointerException - When m==nullpublic void invite(org.bukkit.entity.Player p)
p - The player to be invited.hasInvited(Player)public boolean hasInvited(org.bukkit.entity.Player p)
p - The player to be checkedinvite(Player)public void disband()
public void sethome(org.bukkit.Location l)
l - The location of the new home.getHome()public org.bukkit.Location getHome()
sethome(Location)public void giveItemToAllMembersOnline(org.bukkit.inventory.ItemStack s)
s - The item to be given.java.lang.IllegalArgumentException - When the passed item is nullpublic void broadcast(java.lang.String rawMsg)
rawMsg - The message that will be broadcasted.java.lang.NullPointerException - When the message is nullpublic short getKills()
setKills(short)public void setKills(short kills)
kills - The new number of killsgetKills()public org.bukkit.inventory.Inventory getVault()
Copyright © 2013, louis1234567890987654321@gmail.com. All rights reserved.