Fixed mapping bug where FLAGMUSTBEHOME and LIFEPOOL would get mixed up, causing chaos.

This commit is contained in:
taoneill 2012-01-08 21:02:57 -05:00
parent fb7ceaec55
commit 9ff98d0bbf
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import com.tommytony.war.FlagReturn;
import com.tommytony.war.TeamSpawnStyle;
public enum TeamConfig {
FLAGMUSTBEHOME (Integer.class),
FLAGMUSTBEHOME (Boolean.class),
FLAGPOINTSONLY (Boolean.class),
FLAGRETURN (FlagReturn.class),
LIFEPOOL (Integer.class),

View File

@ -133,7 +133,7 @@ public class WarTxtMapper {
// defaultFlagPointsOnly
if (warConfig.keyExists("defaultFlagPointsOnly")) {
War.war.getTeamDefaultConfig().put(TeamConfig.LIFEPOOL, warConfig.getBoolean("defaultFlagPointsOnly"));
War.war.getTeamDefaultConfig().put(TeamConfig.FLAGPOINTSONLY, warConfig.getBoolean("defaultFlagPointsOnly"));
}
// defaultFlagMustBeHome