public class TeamManager
extends java.lang.Object
| Constructor and Description |
|---|
TeamManager() |
| Modifier and Type | Method and Description |
|---|---|
Team |
createNewTeam(java.lang.String teamName,
org.bukkit.entity.Player moderator) |
int |
getCreateTeamPrice()
Gets the price for creating a team
|
int |
getJoiningPrice()
Gets the price for joining a team
|
int |
getMaxMembersSize()
Gets the max members in a team set by the config
|
int |
getMaxTeamsSize()
Gets the max size of teams set by the config.
|
Member |
getMemberByName(java.lang.String name)
This method returns the name of the member if exists.
|
Team |
getTeamByName(java.lang.String name) |
Member[] |
listMembers(Team t)
This method lists all members in a team
|
Team[] |
listTeams()
This function lists an array of created teams.
|
public Team[] listTeams()
getByName(String)public Team getTeamByName(java.lang.String name)
name - The exact name of the team (matches case)listTeams()public Member[] listMembers(Team t)
t - The corresponding teamjava.lang.NullPointerException - if t==nullpublic Member getMemberByName(java.lang.String name)
name - The name of the memberpublic Team createNewTeam(java.lang.String teamName, org.bukkit.entity.Player moderator)
teamName - The name of the new team.moderator - The moderator of the team.java.lang.NullPointerException - When one of the arguments is nulljava.lang.IllegalArgumentException - When a team already existspublic int getMaxTeamsSize()
public int getMaxMembersSize()
public int getJoiningPrice()
public int getCreateTeamPrice()
Copyright © 2013, louis1234567890987654321@gmail.com. All rights reserved.