Skip to content

Commit

Permalink
Testing something
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunf committed Jul 26, 2024
1 parent 1df2117 commit 15baca3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ public void registerListener(){
return;
}

if(data.gameMode == PlayerGameMode.BEDWARS) {
ServerTime.scheduler.schedule(() -> respawnEvent.setRespawnMode(Minecraft.GameMode.SURVIVAL), 30);
if(data.gameMode == PlayerGameMode.BEDWARS && !player.isInvulnerable()) {
player.setGameMode(Minecraft.GameMode.SURVIVAL);
}

if(data.gameMode == PlayerGameMode.OITC) {
respawnEvent.setRespawnMode(Minecraft.GameMode.ADVENTURE);
if(data.gameMode == PlayerGameMode.OITC && !player.isInvulnerable()) {
player.setGameMode(Minecraft.GameMode.ADVENTURE);
}

if(duelsGame != null && duelsGame.isEnding && duelsGame.winner != null) {
Expand Down

0 comments on commit 15baca3

Please sign in to comment.