Hab gehört das muss gemerged werden

p.S. 10er ich weiß was ihr hier rein schreiben muss

Add JajaKings special chat alert
This commit is contained in:
JajaKings
2026-07-24 00:43:33 +02:00
parent badff1c70f
commit 95882b67c0
2 changed files with 15 additions and 6 deletions
@@ -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_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 <MESSAGE>". CHAT_CHAOSCAOT_5 = And if you define it as broken, then tell us using the command "/bug <MESSAGE>".
CHAT_CHAOSCAOT_6 = Thank you and goodbye. 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_RECEIVE = §cTo be able to send chat messages, you must also receive them!
CHAT_NO_LINKS = §cYou may not send links. CHAT_NO_LINKS = §cYou may not send links.
CHAT_BC_USAGE = §8/§7bc §8[§emessage§8] CHAT_BC_USAGE = §8/§7bc §8[§emessage§8]
@@ -230,15 +230,17 @@ public class ChatListener extends BasicListener {
if (PunishmentCommand.isPunishedWithMessage(sender, Punishment.PunishmentType.Mute)) return true; if (PunishmentCommand.isPunishedWithMessage(sender, Punishment.PunishmentType.Mute)) return true;
if (message.contains("LIXFEL")) { 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")) { 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")) { 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; return false;
} }
@@ -290,8 +292,10 @@ public class ChatListener extends BasicListener {
return false; return false;
} }
private static void specialAlert(Chatter sender, String name, String baseMessage, int... delay) { private static void specialAlert(Chatter sender, String name, String baseMessage, boolean devs, int... delay) {
if (devs) {
sender.system("CHAT_LIXFEL_ACTION_BAR"); sender.system("CHAT_LIXFEL_ACTION_BAR");
}
for (int i = 0; i < delay.length; i++) { for (int i = 0; i < delay.length; i++) {
int finalI = i; int finalI = i;
VelocityCore.schedule(() -> sender.prefixless("CHAT_MSG", name, sender.user(), new Message(baseMessage + (finalI + 1)))).delay(delay[i], TimeUnit.SECONDS).schedule(); VelocityCore.schedule(() -> sender.prefixless("CHAT_MSG", name, sender.user(), new Message(baseMessage + (finalI + 1)))).delay(delay[i], TimeUnit.SECONDS).schedule();