changed behavior to spawn in survival mode
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user