Merge pull request 'Improve behaviour during check session' (#303) from checkImprovement into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #303 Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Commit
4f003bb910
@ -49,7 +49,6 @@ public class HotbarGUI implements Listener {
|
|||||||
if(event.getItem() == null)
|
if(event.getItem() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
event.setCancelled(true);
|
|
||||||
FightTeam fightTeam = Fight.getPlayerTeam(player);
|
FightTeam fightTeam = Fight.getPlayerTeam(player);
|
||||||
if(fightTeam == null)
|
if(fightTeam == null)
|
||||||
return;
|
return;
|
||||||
@ -60,6 +59,7 @@ public class HotbarGUI implements Listener {
|
|||||||
if(displayName == null)
|
if(displayName == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
event.setCancelled(true);
|
||||||
onMatch(player, displayName, "CHOOSE_SCHEMATIC", () -> GUI.preSchemDialog(player), Config.GameName);
|
onMatch(player, displayName, "CHOOSE_SCHEMATIC", () -> GUI.preSchemDialog(player), Config.GameName);
|
||||||
onMatch(player, displayName, "INVITE_PLAYERS", () -> GUI.chooseInvitation(player));
|
onMatch(player, displayName, "INVITE_PLAYERS", () -> GUI.chooseInvitation(player));
|
||||||
onMatch(player, displayName, "REMOVE_PLAYERS", () -> GUI.chooseRemove(player));
|
onMatch(player, displayName, "REMOVE_PLAYERS", () -> GUI.chooseRemove(player));
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package de.steamwar.fightsystem.listener;
|
package de.steamwar.fightsystem.listener;
|
||||||
|
|
||||||
|
import de.steamwar.fightsystem.ArenaMode;
|
||||||
import de.steamwar.fightsystem.Config;
|
import de.steamwar.fightsystem.Config;
|
||||||
import de.steamwar.fightsystem.states.FightState;
|
import de.steamwar.fightsystem.states.FightState;
|
||||||
import de.steamwar.fightsystem.states.StateDependentListener;
|
import de.steamwar.fightsystem.states.StateDependentListener;
|
||||||
@ -32,8 +33,10 @@ public class PistonListener implements Listener {
|
|||||||
|
|
||||||
public PistonListener() {
|
public PistonListener() {
|
||||||
//Wenn Entern aktiv ist, sollen Raketen etc. entern können
|
//Wenn Entern aktiv ist, sollen Raketen etc. entern können
|
||||||
new StateDependentListener(Config.EnterStages.isEmpty(), FightState.All, this);
|
if(!ArenaMode.Check.contains(Config.mode)) {
|
||||||
new StateDependentListener(!Config.EnterStages.isEmpty(), FightState.Setup, this);
|
new StateDependentListener(Config.EnterStages.isEmpty(), FightState.All, this);
|
||||||
|
new StateDependentListener(!Config.EnterStages.isEmpty(), FightState.Setup, this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren