From 8defbaa18b475526a0f236fb74af6214c943dde9 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 29 May 2025 00:03:25 +0200 Subject: [PATCH] Add tech hider bug handling for arena subservers in BugCommand --- .../src/de/steamwar/velocitycore/commands/BugCommand.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/BugCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/BugCommand.java index 22c9f391..088acb09 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/BugCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/BugCommand.java @@ -19,9 +19,11 @@ package de.steamwar.velocitycore.commands; +import de.steamwar.persistent.Subserver; import de.steamwar.sql.SWException; import de.steamwar.command.SWCommand; import de.steamwar.messages.Chatter; +import de.steamwar.velocitycore.SubserverSystem; public class BugCommand extends SWCommand { public BugCommand() { @@ -35,5 +37,9 @@ public class BugCommand extends SWCommand { sender.withPlayerOrOffline(player -> player.getCurrentServer().map(connection -> connection.getServerInfo().getName()).orElse("offline"), () -> "offline") + " " + sender.user().getUserName() + " " + sender.user().getId() ); sender.system("BUG_MESSAGE", id); + + if (Subserver.isArena(Subserver.getSubserver(sender.getPlayer()))) { + sender.getPlayer().spoofChatInput("/techhiderbug"); + } } }