Skip to content

Commit 71f4217

Browse files
committed
Disable safe scatter for team games
1 parent b41bd1d commit 71f4217

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/io/shantek/BingoCommand.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,11 @@ public void startBingo(Player commandPlayer) {
367367
*/
368368

369369
// Will change this to safe scatter in teams in an update
370-
List<Player> players = new ArrayList<>(Bukkit.getOnlinePlayers());
371-
ultimateBingo.bingoFunctions.safeScatterPlayers(players, ultimateBingo.bingoSpawnLocation, 5);
372370

371+
if (!Objects.equals(ultimateBingo.currentGameMode, "teams")) {
372+
List<Player> players = new ArrayList<>(Bukkit.getOnlinePlayers());
373+
ultimateBingo.bingoFunctions.safeScatterPlayers(players, ultimateBingo.bingoSpawnLocation, 5);
374+
}
373375

374376

375377
// Handle player teleportation and give bingo cards after the countdown

0 commit comments

Comments
 (0)