From 08cc40ccfbb90dc837c3cc2c62de2897bcc317b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Dec 2021 17:17:09 +0100 Subject: [PATCH 1/5] Bump annotations from 21.0.1 to 23.0.0 (#9) Bumps [annotations](https://github.com/JetBrains/java-annotations) from 21.0.1 to 23.0.0. - [Release notes](https://github.com/JetBrains/java-annotations/releases) - [Changelog](https://github.com/JetBrains/java-annotations/blob/master/CHANGELOG.md) - [Commits](https://github.com/JetBrains/java-annotations/compare/21.0.1...23.0.0) --- updated-dependencies: - dependency-name: org.jetbrains:annotations dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7dd2b72..c405cc3 100644 --- a/pom.xml +++ b/pom.xml @@ -158,7 +158,7 @@ org.jetbrains annotations - 21.0.1 + 23.0.0 compile From c1100d3b9a2a7015371724fabd9d695eb71a4f88 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sat, 11 Dec 2021 15:41:41 +0100 Subject: [PATCH 2/5] Update SongodaCore to v2.6.6 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c405cc3..1c125b5 100644 --- a/pom.xml +++ b/pom.xml @@ -150,7 +150,7 @@ com.songoda SongodaCore - 2.5.8 + 2.6.6 compile From 53e4482980a750cd1eec6651c7784222466aaeaf Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Thu, 9 Dec 2021 06:02:06 +0100 Subject: [PATCH 3/5] Version 2.1.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1c125b5..121a2cc 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.songoda EpicAnchors - 2.0.0-ALPHA + 2.1.0 EpicAnchors From 090a243e96b80c29bdbcaf091a976093b468f460 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sat, 15 Jan 2022 23:09:06 +0100 Subject: [PATCH 4/5] Updated Core to v2.6.10 --- pom.xml | 3 +-- .../com/songoda/epicanchors/AnchorManager.java | 14 ++++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 121a2cc..6dce81c 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,6 @@ com.songoda EpicAnchors 2.1.0 - EpicAnchors Allow your players to keep chunks loaded for a limited amount of time for a cost. @@ -150,7 +149,7 @@ com.songoda SongodaCore - 2.6.6 + 2.6.10 compile diff --git a/src/main/java/com/songoda/epicanchors/AnchorManager.java b/src/main/java/com/songoda/epicanchors/AnchorManager.java index 88513f8..13b2998 100644 --- a/src/main/java/com/songoda/epicanchors/AnchorManager.java +++ b/src/main/java/com/songoda/epicanchors/AnchorManager.java @@ -425,11 +425,17 @@ public class AnchorManager { // are holograms enabled? if (!Settings.HOLOGRAMS.getBoolean() || !HologramManager.getManager().isEnabled()) return; - Map> hologramData = new HashMap<>(anchors.size()); + Map> hologramData = new HashMap<>(anchors.size()); for (Anchor anchor : anchors) { - hologramData.put(anchor.getLocation(), - Collections.singletonList(formatAnchorText(anchor.getTicksLeft(), true))); + List lines = Collections.singletonList(formatAnchorText(anchor.getTicksLeft(), true)); + + if (!HologramManager.isHologramLoaded("Anchor#" + anchor.getDbId())) { + HologramManager.createHologram("Anchor#" + anchor.getDbId(), anchor.getLocation(), lines); + continue; + } + + hologramData.put("Anchor#" + anchor.getDbId(), lines); } // Create the holograms @@ -466,6 +472,6 @@ public class AnchorManager { } private static void removeHologram(Anchor anchor) { - HologramManager.removeHologram(anchor.getLocation()); + HologramManager.removeHologram("Anchor#" + anchor.getDbId()); } } From 362b6d31262c3d88fd542529e7451ac412b6e2b1 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sat, 15 Jan 2022 23:09:31 +0100 Subject: [PATCH 5/5] Version 2.2.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6dce81c..505e316 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.songoda EpicAnchors - 2.1.0 + 2.2.0 EpicAnchors Allow your players to keep chunks loaded for a limited amount of time for a cost.