Rework the /f invite command to be a parentcommand.

This commit is contained in:
Benjamin Heusser
2015-01-13 13:50:38 +01:00
committed by Olof Larsson
parent 29a4feeff6
commit 486f8ac957
7 changed files with 328 additions and 63 deletions

View File

@ -482,6 +482,18 @@ public class Faction extends Entity<Faction> implements EconomyParticipator
this.setInvited(mplayer.getId(), invited);
}
public List<MPlayer> getInvitedMPlayers()
{
List<MPlayer> mplayers = new ArrayList<MPlayer>();
for (String id : this.getInvitedPlayerIds())
{
MPlayer mplayer = MPlayer.get(id);
mplayers.add(mplayer);
}
return mplayers;
}
// -------------------------------------------- //
// FIELD: relationWish
// -------------------------------------------- //