SteamWar/FightSystem
Archiviert
13
1

Merge pull request 'Improve behaviour during check session' (#303) from checkImprovement into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #303
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Lixfel 2021-11-11 06:53:50 +01:00
Commit 4f003bb910
2 geänderte Dateien mit 6 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -49,7 +49,6 @@ public class HotbarGUI implements Listener {
if(event.getItem() == null)
return;
event.setCancelled(true);
FightTeam fightTeam = Fight.getPlayerTeam(player);
if(fightTeam == null)
return;
@ -60,6 +59,7 @@ public class HotbarGUI implements Listener {
if(displayName == null)
return;
event.setCancelled(true);
onMatch(player, displayName, "CHOOSE_SCHEMATIC", () -> GUI.preSchemDialog(player), Config.GameName);
onMatch(player, displayName, "INVITE_PLAYERS", () -> GUI.chooseInvitation(player));
onMatch(player, displayName, "REMOVE_PLAYERS", () -> GUI.chooseRemove(player));

Datei anzeigen

@ -19,6 +19,7 @@
package de.steamwar.fightsystem.listener;
import de.steamwar.fightsystem.ArenaMode;
import de.steamwar.fightsystem.Config;
import de.steamwar.fightsystem.states.FightState;
import de.steamwar.fightsystem.states.StateDependentListener;
@ -32,9 +33,11 @@ public class PistonListener implements Listener {
public PistonListener() {
//Wenn Entern aktiv ist, sollen Raketen etc. entern können
if(!ArenaMode.Check.contains(Config.mode)) {
new StateDependentListener(Config.EnterStages.isEmpty(), FightState.All, this);
new StateDependentListener(!Config.EnterStages.isEmpty(), FightState.Setup, this);
}
}
@EventHandler
public void handlePistonExtend(BlockPistonExtendEvent e){