Add faction announcements to send to all players and show to players when they login if they were not online when it was first sent as requested in issue #82.

This commit is contained in:
drtshock
2014-10-18 03:54:45 -05:00
parent 047fe0937a
commit bed6fe0741
8 changed files with 93 additions and 6 deletions

View File

@@ -563,7 +563,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
/**
* Check if the scoreboard should be shown. Simple method to be used by above method.
*
* @param toShow Faction to be shown.
*
* @return true if should show, otherwise false.
*/
private boolean shouldShowScoreboard(Faction toShow) {
@@ -629,6 +631,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
}
}
myFaction.removeAnnouncements(this);
this.resetFactionData();
if (myFaction.isNormal() && !perm && myFaction.getFPlayers().isEmpty()) {