From 6745dfe3c1df2667a162ca801e3b8bebb2a0a647 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 30 Aug 2020 02:57:48 +0200 Subject: [PATCH] Fix Tracer actionBar --- .../src/de/steamwar/bausystem/tracer/TNTTracer_12.java | 4 ++-- .../src/de/steamwar/bausystem/tracer/TNTTracer_15.java | 9 ++++++--- .../src/de/steamwar/bausystem/tracer/TraceUtils.java | 2 ++ .../de/steamwar/bausystem/tracer/TracerGuiUpdater.java | 4 ++++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 BauSystem_API/src/de/steamwar/bausystem/tracer/TracerGuiUpdater.java diff --git a/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java b/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java index 83c77b7..018245c 100644 --- a/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java +++ b/BauSystem_12/src/de/steamwar/bausystem/tracer/TNTTracer_12.java @@ -12,6 +12,8 @@ import org.bukkit.plugin.Plugin; import java.util.*; +import static de.steamwar.bausystem.tracer.TraceUtils.actionBar; + @SuppressWarnings("deprecation") class TNTTracer_12 { @@ -20,8 +22,6 @@ class TNTTracer_12 { private static TracerUpdater tracerUpdater; private static TraceCache traceCache = new TraceCache(); - private static boolean actionBar = true; - private static class Synchronizer {} private static final Synchronizer synchronizer = new Synchronizer(); diff --git a/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java b/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java index daabfa8..63a545d 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java @@ -2,12 +2,17 @@ package de.steamwar.bausystem.tracer; import net.md_5.bungee.api.ChatMessageType; import net.md_5.bungee.api.chat.TextComponent; -import org.bukkit.*; +import org.bukkit.Bukkit; +import org.bukkit.Material; +import org.bukkit.Particle; +import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; import java.util.Set; +import static de.steamwar.bausystem.tracer.TraceUtils.actionBar; + @SuppressWarnings("deprecation") class TNTTracer_15 { @@ -16,8 +21,6 @@ class TNTTracer_15 { private static TracerUpdater tracerUpdater; private static TraceCache traceCache = new TraceCache(); - private static boolean actionBar = false; - private static class Synchronizer {} private static final Synchronizer synchronizer = new Synchronizer(); diff --git a/BauSystem_API/src/de/steamwar/bausystem/tracer/TraceUtils.java b/BauSystem_API/src/de/steamwar/bausystem/tracer/TraceUtils.java index f867071..bcb4404 100644 --- a/BauSystem_API/src/de/steamwar/bausystem/tracer/TraceUtils.java +++ b/BauSystem_API/src/de/steamwar/bausystem/tracer/TraceUtils.java @@ -10,6 +10,8 @@ public class TraceUtils { private static Location location; + public static boolean actionBar = false; + public static void locationInit() { location = new Location(Bukkit.getWorlds().get(0), 0, 0, 0); } diff --git a/BauSystem_API/src/de/steamwar/bausystem/tracer/TracerGuiUpdater.java b/BauSystem_API/src/de/steamwar/bausystem/tracer/TracerGuiUpdater.java new file mode 100644 index 0000000..1f3dd47 --- /dev/null +++ b/BauSystem_API/src/de/steamwar/bausystem/tracer/TracerGuiUpdater.java @@ -0,0 +1,4 @@ +package de.steamwar.bausystem.tracer; + +public class TracerGuiUpdater { +}