Skip to content

Commit f555743

Browse files
committed
respawnAtHomeAfterDeath setting ignoring fixed.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent a6e6930 commit f555743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/home/ModuleObject.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class ModuleObject : IModule {
5555

5656
@SubscribeEvent
5757
fun onPlayerRespawn(event: PlayerEvent.PlayerRespawnEvent) {
58+
if (!homeSettingsConfiguration.respawnAtHomeAfterDeath) return
5859
val player = event.player as ServerPlayerEntity
5960
homeConfiguration.users.asSequence().find {
6061
it.name == player.name.string || it.uuid == player.uniqueID.toString()

0 commit comments

Comments
 (0)