From 84cb0398dbf269dcf7cab78a4783b07f109cb09f Mon Sep 17 00:00:00 2001 From: okx-code Date: Sun, 12 Oct 2025 19:50:06 +0100 Subject: [PATCH] fix jukealert using legacy items --- ansible/files/gamma-config/plugins/JukeAlert/config.yml | 2 ++ ansible/files/paper-config/plugins/JukeAlert/config.yml | 2 ++ .../src/main/java/net/civmc/civproxy/PlayerCount.java | 1 - plugins/jukealert-paper/src/main/resources/config.yml | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ansible/files/gamma-config/plugins/JukeAlert/config.yml b/ansible/files/gamma-config/plugins/JukeAlert/config.yml index c237d410f..79488ca0b 100644 --- a/ansible/files/gamma-config/plugins/JukeAlert/config.yml +++ b/ansible/files/gamma-config/plugins/JukeAlert/config.yml @@ -4,6 +4,7 @@ snitchConfigs: ==: org.bukkit.inventory.ItemStack type: NOTE_BLOCK amount: 1 + v: 3839 id: 0 name: Snitch range: 11 @@ -22,6 +23,7 @@ snitchConfigs: ==: org.bukkit.inventory.ItemStack type: JUKEBOX amount: 1 + v: 3839 id: 1 name: Logsnitch range: 11 diff --git a/ansible/files/paper-config/plugins/JukeAlert/config.yml b/ansible/files/paper-config/plugins/JukeAlert/config.yml index c237d410f..79488ca0b 100644 --- a/ansible/files/paper-config/plugins/JukeAlert/config.yml +++ b/ansible/files/paper-config/plugins/JukeAlert/config.yml @@ -4,6 +4,7 @@ snitchConfigs: ==: org.bukkit.inventory.ItemStack type: NOTE_BLOCK amount: 1 + v: 3839 id: 0 name: Snitch range: 11 @@ -22,6 +23,7 @@ snitchConfigs: ==: org.bukkit.inventory.ItemStack type: JUKEBOX amount: 1 + v: 3839 id: 1 name: Logsnitch range: 11 diff --git a/plugins/civproxy-velocity/src/main/java/net/civmc/civproxy/PlayerCount.java b/plugins/civproxy-velocity/src/main/java/net/civmc/civproxy/PlayerCount.java index bbf81d7b9..fc2ba381a 100644 --- a/plugins/civproxy-velocity/src/main/java/net/civmc/civproxy/PlayerCount.java +++ b/plugins/civproxy-velocity/src/main/java/net/civmc/civproxy/PlayerCount.java @@ -20,7 +20,6 @@ public class PlayerCount { } public void start() { - server.getEventManager().register(plugin, this); server.getScheduler().buildTask(plugin, () -> { try { Map count = new HashMap<>(); diff --git a/plugins/jukealert-paper/src/main/resources/config.yml b/plugins/jukealert-paper/src/main/resources/config.yml index 8b85d133a..76c6bae83 100644 --- a/plugins/jukealert-paper/src/main/resources/config.yml +++ b/plugins/jukealert-paper/src/main/resources/config.yml @@ -17,6 +17,7 @@ snitchConfigs: ==: org.bukkit.inventory.ItemStack type: NOTE_BLOCK amount: 1 + v: 3839 id: 0 name: Snitch range: @@ -38,6 +39,7 @@ snitchConfigs: ==: org.bukkit.inventory.ItemStack type: JUKEBOX amount: 1 + v: 3839 id: 1 name: Logsnitch range: 11