Add cooldown for auto showing f map to players. Fixes issue #64.

This commit is contained in:
drtshock
2014-10-09 11:04:11 -05:00
parent 49e69b74c8
commit 272c35cda6
4 changed files with 29 additions and 18 deletions

View File

@@ -542,10 +542,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
// Shows them the scoreboard instead of sending a message in chat. Will disappear after a few seconds.
new FInfoBoard(getPlayer(), toShow, true);
} else {
Faction factionHere = Board.getFactionAt(this.getLastStoodAt());
String msg = P.p.txt.parse("<i>") + " ~ " + factionHere.getTag(this);
if (factionHere.getDescription().length() > 0) {
msg += " - " + factionHere.getDescription();
String msg = P.p.txt.parse("<i>") + " ~ " + toShow.getTag(this);
if (toShow.getDescription().length() > 0) {
msg += " - " + toShow.getDescription();
}
this.sendMessage(msg);
}