Deactivated
public abstract class PartyManager extends java.lang.Object implements Deactivated
Modifier | Constructor | Description |
---|---|---|
protected |
PartyManager() |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
addPlayerToParty(OnlinePAFPlayer player,
PlayerParty party) |
Puts the player with the party in the
HashMap |
abstract PlayerParty |
createParty(OnlinePAFPlayer player) |
Creates a party if the player is not already in a party.
|
protected abstract void |
deleteAllParties() |
|
abstract void |
deleteParty(PlayerParty party) |
Deletes a party which is given
|
static PartyManager |
getInstance() |
|
abstract PlayerParty |
getParty(OnlinePAFPlayer player) |
Returns the party in which a player is
|
void |
onDisable() |
|
abstract void |
removePlayerFromParty(OnlinePAFPlayer player) |
Removes the player party link from the
HashMap |
public static PartyManager getInstance()
public abstract PlayerParty getParty(OnlinePAFPlayer player)
player
- The playerpublic abstract PlayerParty createParty(OnlinePAFPlayer player)
player
- The playerprotected abstract void deleteAllParties()
public abstract void deleteParty(PlayerParty party)
party
- The partypublic abstract void addPlayerToParty(OnlinePAFPlayer player, PlayerParty party)
HashMap
player
- The Playerparty
- The Partypublic abstract void removePlayerFromParty(OnlinePAFPlayer player)
HashMap
player
- The Playerpublic void onDisable()
onDisable
in interface Deactivated