From 3b77ca4c6f465bcd952d168f0deaa21136096d0f Mon Sep 17 00:00:00 2001 From: NotCoded <66999075+not-coded@users.noreply.github.com> Date: Wed, 7 Aug 2024 20:13:43 +0200 Subject: [PATCH] best playerdeathlistener fix ever --- src/main/java/com/nexia/core/utilities/world/WorldUtil.java | 2 +- src/main/java/com/nexia/ffa/FfaUtil.java | 2 +- .../java/com/nexia/minigames/games/duels/DuelGameHandler.java | 2 +- .../minigames/games/duels/custom/kitroom/kitrooms/KitRoom.java | 2 +- .../java/com/nexia/minigames/games/skywars/SkywarsGame.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/nexia/core/utilities/world/WorldUtil.java b/src/main/java/com/nexia/core/utilities/world/WorldUtil.java index fe2153f7..1cad65b6 100644 --- a/src/main/java/com/nexia/core/utilities/world/WorldUtil.java +++ b/src/main/java/com/nexia/core/utilities/world/WorldUtil.java @@ -40,7 +40,7 @@ public class WorldUtil { .setGameRule(GameRules.RULE_DAYLIGHT, false) .setGameRule(GameRules.RULE_DO_IMMEDIATE_RESPAWN, false) .setGameRule(GameRules.RULE_DOMOBSPAWNING, false) - .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, false) + .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, true) .setGameRule(GameRules.RULE_SPAWN_RADIUS, 0); private static final String templateWorldName = "template:void"; diff --git a/src/main/java/com/nexia/ffa/FfaUtil.java b/src/main/java/com/nexia/ffa/FfaUtil.java index 227feca1..3450db41 100644 --- a/src/main/java/com/nexia/ffa/FfaUtil.java +++ b/src/main/java/com/nexia/ffa/FfaUtil.java @@ -51,7 +51,7 @@ public class FfaUtil { .setGameRule(GameRules.RULE_DAYLIGHT, true) .setGameRule(GameRules.RULE_DO_IMMEDIATE_RESPAWN, true) .setGameRule(GameRules.RULE_DOMOBSPAWNING, false) - .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, false) + .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, true) .setGameRule(GameRules.RULE_ANNOUNCE_ADVANCEMENTS, false) .setGameRule(GameRules.RULE_DISABLE_ELYTRA_MOVEMENT_CHECK, true) .setGameRule(GameRules.RULE_DROWNING_DAMAGE, true) diff --git a/src/main/java/com/nexia/minigames/games/duels/DuelGameHandler.java b/src/main/java/com/nexia/minigames/games/duels/DuelGameHandler.java index c7152624..76d08ff1 100644 --- a/src/main/java/com/nexia/minigames/games/duels/DuelGameHandler.java +++ b/src/main/java/com/nexia/minigames/games/duels/DuelGameHandler.java @@ -176,7 +176,7 @@ public static ServerLevel createWorld(String uuid, boolean doRegeneration) { .setGameRule(GameRules.RULE_DO_IMMEDIATE_RESPAWN, false) .setGameRule(GameRules.RULE_DOMOBSPAWNING, false) .setGameRule(GameRules.RULE_NATURAL_REGENERATION, doRegeneration) - .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, false) + .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, true) .setGameRule(GameRules.RULE_SPAWN_RADIUS, 0) .setGameRule(GameRules.RULE_ANNOUNCE_ADVANCEMENTS, false) .setGameRule(GameRules.RULE_DOFIRETICK, false) diff --git a/src/main/java/com/nexia/minigames/games/duels/custom/kitroom/kitrooms/KitRoom.java b/src/main/java/com/nexia/minigames/games/duels/custom/kitroom/kitrooms/KitRoom.java index 378352c7..1b81d39a 100644 --- a/src/main/java/com/nexia/minigames/games/duels/custom/kitroom/kitrooms/KitRoom.java +++ b/src/main/java/com/nexia/minigames/games/duels/custom/kitroom/kitrooms/KitRoom.java @@ -79,7 +79,7 @@ public boolean generate() { .setGameRule(GameRules.RULE_DO_IMMEDIATE_RESPAWN, false) .setGameRule(GameRules.RULE_DOMOBSPAWNING, false) .setGameRule(GameRules.RULE_NATURAL_REGENERATION, true) - .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, false) + .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, true) .setGameRule(GameRules.RULE_SPAWN_RADIUS, 0) .setGameRule(GameRules.RULE_ANNOUNCE_ADVANCEMENTS, false) .setTimeOfDay(6000); diff --git a/src/main/java/com/nexia/minigames/games/skywars/SkywarsGame.java b/src/main/java/com/nexia/minigames/games/skywars/SkywarsGame.java index 33cee1cc..190d6be7 100644 --- a/src/main/java/com/nexia/minigames/games/skywars/SkywarsGame.java +++ b/src/main/java/com/nexia/minigames/games/skywars/SkywarsGame.java @@ -73,7 +73,7 @@ public class SkywarsGame { .setGameRule(GameRules.RULE_DO_IMMEDIATE_RESPAWN, false) .setGameRule(GameRules.RULE_DOMOBSPAWNING, false) .setGameRule(GameRules.RULE_NATURAL_REGENERATION, true) - .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, false) + .setGameRule(GameRules.RULE_SHOWDEATHMESSAGES, true) .setGameRule(GameRules.RULE_SPAWN_RADIUS, 0) .setGameRule(GameRules.RULE_ANNOUNCE_ADVANCEMENTS, false) .setTimeOfDay(6000);