Faction chat is now something you turn on and off

This commit is contained in:
Olof Larsson
2011-02-13 09:08:20 +01:00
parent da1c0d6142
commit 14ad1299b2
5 changed files with 41 additions and 12 deletions

View File

@@ -90,10 +90,6 @@ public class Conf {
aliasBase.add("/f");
aliasBase.add("f");
aliasBase.add("/faction");
aliasBase.add("faction");
aliasBase.add("/factions");
aliasBase.add("factions");
aliasHelp.add("help");
aliasHelp.add("h");

View File

@@ -18,8 +18,20 @@ public class Follower {
private String title;
private double power;
private long lastPowerUpdateTime;
private boolean mapAutoUpdating;
private boolean mapAutoUpdating;
private boolean factionChatting;
public boolean isFactionChatting() {
if (this.factionId == 0) {
return false;
}
return factionChatting;
}
public void setFactionChatting(boolean factionChatting) {
this.factionChatting = factionChatting;
}
public Follower() {
this.resetFactionData();
this.power = this.getPowerMax();
@@ -29,6 +41,7 @@ public class Follower {
protected void resetFactionData() {
this.factionId = 0; // The default neutral faction
this.factionChatting = false;
this.role = Role.NORMAL;
this.title = "";
}