mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Remove pl3xmap for now, waiting for API for that
This commit is contained in:
1 parent
59679bba75
commit
5ab4ba69ac
2 files changed
-59
No files matched your search
@@ -15,7 +15,6 @@ dependencies {
|
||||
compileOnly 'net.william278:DesertWell:1.0'
|
||||
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
|
||||
compileOnly 'us.dynmap:dynmap-api:3.1'
|
||||
//compileOnly 'maven.modrinth:pl3xmap:1.19.2-217'
|
||||
|
||||
testImplementation 'com.github.seeseemelk:MockBukkit-v1.19:2.117.1'
|
||||
testImplementation 'de.themoep:minedown:1.7.1-SNAPSHOT'
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
package net.william278.huskhomes.hook;
|
||||
|
||||
import net.william278.huskhomes.HuskHomes;
|
||||
import net.william278.huskhomes.position.Home;
|
||||
import net.william278.huskhomes.position.Warp;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import java.io.IOException;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.logging.Level;
|
||||
|
||||
/**
|
||||
* Hook to display warps and public homes on <a href="https://github.com/BillyGalbreath/Pl3xMap">Pl3xMap v2</a> maps
|
||||
*/
|
||||
//todo Still a WIP, awaiting Pl3xMap v2 API!
|
||||
public class Pl3xMapHook extends MapHook {
|
||||
|
||||
public Pl3xMapHook(@NotNull HuskHomes implementor) {
|
||||
super(implementor, "Pl3xMap v2");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected CompletableFuture<Void> initializeMap() {
|
||||
return CompletableFuture.runAsync(() -> {
|
||||
/*try {
|
||||
Pl3xMap.api().getIconRegistry().register(new Key(PUBLIC_HOME_MARKER_IMAGE_NAME), ImageIO.read
|
||||
(Objects.requireNonNull(plugin.getResource("markers/16x/" + PUBLIC_HOME_MARKER_IMAGE_NAME + ".png"))));
|
||||
Pl3xMap.api().getIconRegistry().register(new Key(PUBLIC_HOME_MARKER_IMAGE_NAME), ImageIO.read
|
||||
(Objects.requireNonNull(plugin.getResource("markers/16x/" + WARP_MARKER_IMAGE_NAME + ".png"))));
|
||||
} catch (IOException e) {
|
||||
plugin.getLoggingAdapter().log(Level.SEVERE, "Failed to load marker image resources", e);
|
||||
}*/
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<Void> updateHome(@NotNull Home home) {
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<Void> removeHome(@NotNull Home home) {
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<Void> updateWarp(@NotNull Warp warp) {
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<Void> removeWarp(@NotNull Warp warp) {
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user