We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
respawnAtHomeAfterDeath
1 parent a6e6930 commit f555743Copy full SHA for f555743
src/main/kotlin/com/mairwunnx/projectessentials/home/ModuleObject.kt
@@ -55,6 +55,7 @@ class ModuleObject : IModule {
55
56
@SubscribeEvent
57
fun onPlayerRespawn(event: PlayerEvent.PlayerRespawnEvent) {
58
+ if (!homeSettingsConfiguration.respawnAtHomeAfterDeath) return
59
val player = event.player as ServerPlayerEntity
60
homeConfiguration.users.asSequence().find {
61
it.name == player.name.string || it.uuid == player.uniqueID.toString()
0 commit comments