|
@@ -77,7 +77,7 @@ public class Game {
|
|
|
private static int fights = 0;
|
|
|
private final Map<UUID, MWPlayer> players = new HashMap<>();
|
|
|
private final Map<String, Integer> votes = new HashMap<>(); // Votes for the maps.
|
|
|
- @Getter private final Lobby lobby;
|
|
|
+ private final Lobby lobby;
|
|
|
private final HashMap<UUID, BukkitTask> playerTasks = new HashMap<>();
|
|
|
private Timer timer;
|
|
|
private BukkitTask bt;
|
|
@@ -85,11 +85,11 @@ public class Game {
|
|
|
private Team team1;
|
|
|
private Team team2;
|
|
|
@Setter private boolean draw = true;
|
|
|
- @Getter private boolean ready = false;
|
|
|
+ private boolean ready = false;
|
|
|
private boolean restart = false;
|
|
|
private GameWorld gameWorld;
|
|
|
private long timestart;
|
|
|
- @Getter private Arena arena;
|
|
|
+ private Arena arena;
|
|
|
private ScoreboardManager scoreboardManager;
|
|
|
private GameBoundListener listener;
|
|
|
private ItemStack customBow;
|
|
@@ -344,7 +344,12 @@ public class Game {
|
|
|
|
|
|
public boolean isInGameWorld(Location location) {
|
|
|
World world = location.getWorld();
|
|
|
- return gameWorld.isWorld(world);
|
|
|
+ if (world == null) return false;
|
|
|
+
|
|
|
+ if (gameWorld != null) {
|
|
|
+ return gameWorld.isWorld(world);
|
|
|
+ }
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
public boolean isIn(Location location) {
|