mirror of
https://github.com/taoneill/war.git
synced 2024-11-27 12:46:11 +01:00
Fixed mapping bug where FLAGMUSTBEHOME and LIFEPOOL would get mixed up, causing chaos.
This commit is contained in:
parent
fb7ceaec55
commit
9ff98d0bbf
@ -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),
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user