From 64d652a6760ab5fc6356e1e65207027eb1bae36c Mon Sep 17 00:00:00 2001 From: NotAlexNoyle Date: Tue, 11 Aug 2026 14:33:00 -0400 Subject: [PATCH] Remove Dynamap --- build.gradle.kts | 3 - .../supervanish/hooks/DynmapHook.java | 87 ------------------- .../supervanish/hooks/PluginHookMgr.java | 1 - 3 files changed, 91 deletions(-) delete mode 100644 src/main/java/de/myzelyam/supervanish/hooks/DynmapHook.java diff --git a/build.gradle.kts b/build.gradle.kts index 8832d0a..cf8718e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -81,9 +81,6 @@ dependencies { // TrailGUI (via JitPack). compileOnly("com.github.SinnDevelopment:TrailGUI:37659dda03") - // Dynmap API (via JitPack). - compileOnly("com.github.webbukkit:dynmap-api:v3.1") - // Import MiniPlaceholders API. compileOnly("io.github.miniplaceholders:miniplaceholders-api:2.2.3") diff --git a/src/main/java/de/myzelyam/supervanish/hooks/DynmapHook.java b/src/main/java/de/myzelyam/supervanish/hooks/DynmapHook.java deleted file mode 100644 index 5a29eae..0000000 --- a/src/main/java/de/myzelyam/supervanish/hooks/DynmapHook.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright © 2015, Leon Mangler and the SuperVanish contributors - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ - -package de.myzelyam.supervanish.hooks; - -import de.myzelyam.api.vanish.PlayerHideEvent; -import de.myzelyam.api.vanish.PlayerShowEvent; -import de.myzelyam.supervanish.SuperVanish; -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.EventPriority; -import org.bukkit.event.player.PlayerJoinEvent; -import org.bukkit.event.player.PlayerQuitEvent; -import org.dynmap.DynmapAPI; - -public class DynmapHook extends PluginHook { - - private final boolean sendJoinLeave; - private final SuperVanish superVanish; - - public DynmapHook(SuperVanish superVanish) { - - super(superVanish); - this.superVanish = superVanish; - sendJoinLeave = superVanish.getSettings().getBoolean("HookOptions.DynmapSendJoinLeaveMessages") - && !superVanish.getMessage("DynmapFakeJoin").equals(""); - - } - - @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) - public void onVanish(PlayerHideEvent e) { - - Player p = e.getPlayer(); - DynmapAPI dynmap = (DynmapAPI) plugin; - - dynmap.setPlayerVisiblity(p, false); - if (sendJoinLeave) - dynmap.sendBroadcastToWeb("", superVanish.replacePlaceholders(superVanish.getMessage("DynmapFakeQuit"), p)); - - } - - @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) - public void onReappear(PlayerShowEvent e) { - - Player p = e.getPlayer(); - DynmapAPI dynmap = (DynmapAPI) plugin; - - dynmap.setPlayerVisiblity(p, true); - if (sendJoinLeave) - dynmap.sendBroadcastToWeb("", superVanish.replacePlaceholders(superVanish.getMessage("DynmapFakeJoin"), p)); - - } - - @EventHandler(priority = EventPriority.LOWEST) - public void onJoin(PlayerJoinEvent e) { - - Player p = e.getPlayer(); - DynmapAPI dynmap = (DynmapAPI) plugin; - - if (superVanish.getVanishStateMgr().isVanished(p.getUniqueId())) { - - dynmap.setPlayerVisiblity(p, false); - - } - - } - - @EventHandler(priority = EventPriority.MONITOR) - public void onQuit(PlayerQuitEvent e) { - - Player p = e.getPlayer(); - DynmapAPI dynmap = (DynmapAPI) plugin; - - if (superVanish.getVanishStateMgr().isVanished(p.getUniqueId())) { - - dynmap.setPlayerVisiblity(p, true); - - } - - } - -} diff --git a/src/main/java/de/myzelyam/supervanish/hooks/PluginHookMgr.java b/src/main/java/de/myzelyam/supervanish/hooks/PluginHookMgr.java index 09a1680..8ba680a 100644 --- a/src/main/java/de/myzelyam/supervanish/hooks/PluginHookMgr.java +++ b/src/main/java/de/myzelyam/supervanish/hooks/PluginHookMgr.java @@ -32,7 +32,6 @@ public class PluginHookMgr implements Listener { put("Essentials", EssentialsHook.class); put("Citizens", CitizensHook.class); put("Utilities-OG", MiniPlaceholdersHook.class); - put("dynmap", DynmapHook.class); put("TrailGUI", TrailGUIHook.class); put("OpenInv", OpenInvHook.class); put("TAB-OG", TabOGHook.class);