From 95882b67c02847f6147d490b9051ffbac7f8f487 Mon Sep 17 00:00:00 2001 From: JajaKings Date: Fri, 24 Jul 2026 00:43:33 +0200 Subject: [PATCH] =?UTF-8?q?Hab=20geh=C3=B6rt=20das=20muss=20gemerged=20wer?= =?UTF-8?q?den?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit p.S. 10er ich weiß was ihr hier rein schreiben muss Add JajaKings special chat alert --- .../de/steamwar/messages/BungeeCore.properties | 5 +++++ .../velocitycore/listeners/ChatListener.java | 16 ++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/VelocityCore/src/de/steamwar/messages/BungeeCore.properties b/VelocityCore/src/de/steamwar/messages/BungeeCore.properties index 0dd2a7d6..3801b4e6 100644 --- a/VelocityCore/src/de/steamwar/messages/BungeeCore.properties +++ b/VelocityCore/src/de/steamwar/messages/BungeeCore.properties @@ -569,6 +569,11 @@ CHAT_CHAOSCAOT_3 = And if it is a feature, just then it can\'t be broken. CHAT_CHAOSCAOT_4 = Broken is just a definition. So if you define it as a feature, it\'s not broken. CHAT_CHAOSCAOT_5 = And if you define it as broken, then tell us using the command "/bug ". CHAT_CHAOSCAOT_6 = Thank you and goodbye. +CHAT_JAJAKINGS_1 = Jaki meinte ich soll das hier auf English schreiben +CHAT_JAJAKINGS_2 = Guess What +CHAT_JAJAKINGS_3 = Gar nix muss ich! +CHAT_JAJAKINGS_4 = Bei Fragen und Problem wende dich gerne an die Supporter oder die Moderatoren +CHAT_JAJAKINGS_5 = Oder öffne ein Ticket auf dem Discord! CHAT_RECEIVE = §cTo be able to send chat messages, you must also receive them! CHAT_NO_LINKS = §cYou may not send links. CHAT_BC_USAGE = §8/§7bc §8[§emessage§8] diff --git a/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java b/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java index ad522fee..6a7c32ab 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java +++ b/VelocityCore/src/de/steamwar/velocitycore/listeners/ChatListener.java @@ -230,15 +230,17 @@ public class ChatListener extends BasicListener { if (PunishmentCommand.isPunishedWithMessage(sender, Punishment.PunishmentType.Mute)) return true; if (message.contains("LIXFEL")) { - specialAlert(sender, "Lixfel", "CHAT_LIXFEL_", 3, 6, 11, 12, 15); + specialAlert(sender, "Lixfel", "CHAT_LIXFEL_", true, 3, 6, 11, 12, 15); } if (message.contains("YOYONOW")) { - specialAlert(sender, "YoyoNow", "CHAT_YOYONOW_", 3, 6, 11, 12); + specialAlert(sender, "YoyoNow", "CHAT_YOYONOW_", true, 3, 6, 11, 12); } if (message.contains("CHAOSCAOT")) { - specialAlert(sender, "Chaoscaot", "CHAT_CHAOSCAOT_", 3, 6, 11, 12, 15, 17); + specialAlert(sender, "Chaoscaot", "CHAT_CHAOSCAOT_", true, 3, 6, 11, 12, 15, 17); + } + if (message.contains("JAJAKINGS")||message.contains("jaja")) { + specialAlert(sender, "JajaKings", "CHAT_JAJAKINGS_", false, 3, 7, 13, 16, 18); } - return false; } @@ -290,8 +292,10 @@ public class ChatListener extends BasicListener { return false; } - private static void specialAlert(Chatter sender, String name, String baseMessage, int... delay) { - sender.system("CHAT_LIXFEL_ACTION_BAR"); + private static void specialAlert(Chatter sender, String name, String baseMessage, boolean devs, int... delay) { + if (devs) { + sender.system("CHAT_LIXFEL_ACTION_BAR"); + } for (int i = 0; i < delay.length; i++) { int finalI = i; VelocityCore.schedule(() -> sender.prefixless("CHAT_MSG", name, sender.user(), new Message(baseMessage + (finalI + 1)))).delay(delay[i], TimeUnit.SECONDS).schedule();