1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-19 18:33:00 +01:00

Working party system, still need to fix party chat to not be jibberish though.

This commit is contained in:
nossr50
2010-12-30 12:18:38 -08:00
parent 2a1ff28af2
commit 42cb17db5b
6 changed files with 104 additions and 5 deletions

View File

@@ -153,6 +153,7 @@ class PlayerList
nickName,
tag,
suffix,
party,
tpxyz;
private boolean dead;
@@ -183,6 +184,8 @@ class PlayerList
nickName = new String();
suffix = new String();
tpxyz = new String();
party = new String();
party = null;
defaultColor = 'f';
ignoreList = new ArrayList<String>();
aliasList = new commandList();
@@ -505,6 +508,27 @@ class PlayerList
nickName = newNick;
save();
}
//Store the player's party
public void setParty(String newParty)
{
party = newParty;
save();
}
//Retrieve the player's party
public String getParty() {return party;}
//Remove party
public void removeParty() {
party = null;
save();
}
//Retrieve whether or not the player is in a party
public boolean inParty() {
if(party != null){
return true;
} else {
return false;
}
}
//=====================================================================
//Function: getNick