From 0d2a0fcbc582c2fcca4a6950169caaa5d9ab7b3c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 9 Apr 2021 15:06:36 +0200 Subject: [PATCH] Fix player death and resource pack Signed-off-by: Lixfel --- FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java | 1 + .../src/de/steamwar/fightsystem/listener/Recording.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java b/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java index 2611d88..4191556 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/FightSystem.java @@ -74,6 +74,7 @@ public class FightSystem extends JavaPlugin { new DenyWorldInteraction(); new EventJoin(); new Recording(); + new ResourcePack(); new Check(); new Shutdown(); new SetupQuit(); diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/listener/Recording.java b/FightSystem_Main/src/de/steamwar/fightsystem/listener/Recording.java index 1e5c287..fcefb2f 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/listener/Recording.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/listener/Recording.java @@ -81,7 +81,7 @@ public class Recording implements Listener { RecordSystem.entityMoves(e.getPlayer()); } - @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) + @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public void onPlayerDeath(PlayerDeathEvent e){ if(isNotSent(e.getEntity())) return;