From f2a06057a803e3afa261784bbf94e694c9413cad Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Fri, 22 May 2026 18:46:36 +0200 Subject: [PATCH 1/2] Fix tick step bossbar remaining visable --- .../features/tpslimit/TPSSystem.java | 4 +-- .../bausystem/utils/TickEndEvent.java | 36 ------------------- 2 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickEndEvent.java diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java index a9b36c50..3e1c2772 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java @@ -19,13 +19,13 @@ package de.steamwar.bausystem.features.tpslimit; +import com.destroystokyo.paper.event.server.ServerTickEndEvent; import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.Permission; import de.steamwar.bausystem.SWUtils; import de.steamwar.bausystem.linkage.BauGuiItem; import de.steamwar.bausystem.region.Region; import de.steamwar.bausystem.utils.ScoreboardElement; -import de.steamwar.bausystem.utils.TickEndEvent; import de.steamwar.bausystem.utils.TickManager; import de.steamwar.bausystem.utils.bossbar.BauSystemBossbar; import de.steamwar.bausystem.utils.bossbar.BossBarService; @@ -72,7 +72,7 @@ public class TPSSystem implements Listener { } @EventHandler - public void onTickEnd(TickEndEvent event) { + public void onTickEnd(ServerTickEndEvent event) { bossbar(); } diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickEndEvent.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickEndEvent.java deleted file mode 100644 index ad145dbe..00000000 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickEndEvent.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is a part of the SteamWar software. - * - * Copyright (C) 2025 SteamWar.de-Serverteam - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.steamwar.bausystem.utils; - -import org.bukkit.event.Event; -import org.bukkit.event.HandlerList; - -public class TickEndEvent extends Event { - - private static final HandlerList handlers = new HandlerList(); - - public HandlerList getHandlers() { - return handlers; - } - - public static HandlerList getHandlerList() { - return handlers; - } -} From 7b3a04f4ebff3857b3a174fcb4915910ef423bb5 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Fri, 22 May 2026 18:49:51 +0200 Subject: [PATCH 2/2] Remove unused custom event --- .../bausystem/utils/TickStartEvent.java | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickStartEvent.java diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickStartEvent.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickStartEvent.java deleted file mode 100644 index fbb02f22..00000000 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/utils/TickStartEvent.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is a part of the SteamWar software. - * - * Copyright (C) 2025 SteamWar.de-Serverteam - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.steamwar.bausystem.utils; - -import org.bukkit.event.Event; -import org.bukkit.event.HandlerList; - -public class TickStartEvent extends Event { - - private static final HandlerList handlers = new HandlerList(); - - public HandlerList getHandlers() { - return handlers; - } - - public static HandlerList getHandlerList() { - return handlers; - } -}