diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/event/PersistentDamage.java b/FightSystem_Core/src/de/steamwar/fightsystem/event/PersistentDamage.java index 606894f..543eff9 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/event/PersistentDamage.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/event/PersistentDamage.java @@ -20,6 +20,8 @@ package de.steamwar.fightsystem.event; import com.sk89q.worldedit.WorldEditException; +import de.steamwar.fightsystem.ArenaMode; +import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.FightSystem; import de.steamwar.fightsystem.fight.Fight; import de.steamwar.fightsystem.states.FightState; @@ -33,6 +35,9 @@ import java.util.logging.Level; public class PersistentDamage { public PersistentDamage() { + if(!ArenaMode.SeriousFight.contains(Config.mode)) + return; + new OneShotStateDependent(Winconditions.PERSISTENT_DAMAGE, FightState.Spectate, () -> Fight.teams().forEach(team -> { try{ WorldeditWrapper.impl.saveSchem(SchematicNode.getSchematicNode(team.getSchematic()), team.getExtendRegion(), team.getSchemRegion().getMinY());