No longer use/save party name in database and users flat file

This commit is contained in:
bm01
2012-06-09 19:48:18 +02:00
parent dfff0efc0b
commit 81eadc1418
4 changed files with 23 additions and 36 deletions

View File

@ -166,6 +166,22 @@ public class PartyManager {
return null;
}
/**
* Retrieve a party by a member name
*
* @param playerName The member name
* @return the existing party, null otherwise
*/
public Party getPlayerParty(String playerName) {
for (Party party : parties) {
if (party.getMembers().contains(playerName)) {
return party;
}
}
return null;
}
/**
* Get a list of all current party names.
*