mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Remove isLobbyDisabled game rule
This commit is contained in:
parent
b35000358f
commit
4ddfea0205
@ -73,10 +73,6 @@ public class GameRule<V> {
|
|||||||
* The location where the players spawn when they finish the dungeon.
|
* The location where the players spawn when they finish the dungeon.
|
||||||
*/
|
*/
|
||||||
public static final GameRule<String> FINISH_LOCATION = new GameRule<>(String.class, "finishLocation", null);
|
public static final GameRule<String> FINISH_LOCATION = new GameRule<>(String.class, "finishLocation", null);
|
||||||
/**
|
|
||||||
* If the Lobby is disabled. This applies only to Dungeons that have to be solved alone and where there are no classes to choose from.
|
|
||||||
*/
|
|
||||||
public static final GameRule<Boolean> IS_LOBBY_DISABLED = new GameRule<>(Boolean.class, "isLobbyDisabled", false);
|
|
||||||
/**
|
/**
|
||||||
* The goal of the game that defines what makes it end.
|
* The goal of the game that defines what makes it end.
|
||||||
*/
|
*/
|
||||||
|
@ -99,10 +99,6 @@ public class DGamePlayer extends DInstancePlayer implements GamePlayer {
|
|||||||
}
|
}
|
||||||
player.setAllowFlight(rules.getState(GameRule.FLY));
|
player.setAllowFlight(rules.getState(GameRule.FLY));
|
||||||
|
|
||||||
if (rules.getState(GameRule.IS_LOBBY_DISABLED)) {
|
|
||||||
ready();
|
|
||||||
}
|
|
||||||
|
|
||||||
initialLives = rules.getState(GameRule.INITIAL_LIVES);
|
initialLives = rules.getState(GameRule.INITIAL_LIVES);
|
||||||
lives = initialLives;
|
lives = initialLives;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user