changed behavior to spawn in survival mode

This commit is contained in:
2025-06-24 20:09:36 +02:00
parent f3b884058e
commit 035864631d

View File

@ -85,7 +85,7 @@ public class Spawnpoint extends Appliance {
PersistentDataContainer dataContainer = player.getPersistentDataContainer();
if(dataContainer.has(alreadySpawned)) return;
player.teleportAsync(this.spawnPoints.get(player.getUniqueId()));
player.setGameMode(GameMode.ADVENTURE);
player.setGameMode(GameMode.SURVIVAL);
dataContainer.set(alreadySpawned, PersistentDataType.BOOLEAN, true);
}