From 35d9e418fe482bab73742f6ba8bad15476f8f778 Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 28 May 2018 15:45:24 -0700 Subject: [PATCH] Updated to match warps. --- src/main/java/bskyblock/addon/level/Level.java | 1 - src/main/java/bskyblock/addon/level/TopTen.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/bskyblock/addon/level/Level.java b/src/main/java/bskyblock/addon/level/Level.java index 2a6f1d3..c00cbe3 100644 --- a/src/main/java/bskyblock/addon/level/Level.java +++ b/src/main/java/bskyblock/addon/level/Level.java @@ -114,7 +114,6 @@ public class Level extends Addon { // AcidIsland hook in getServer().getScheduler().runTask(getBSkyBlock(), () -> { this.getBSkyBlock().getAddonsManager().getAddonByName("AcidIsland").ifPresent(a -> { - getLogger().info("DEBUG: " + getBSkyBlock().getCommandsManager().listCommands()); CompositeCommand acidIslandCmd = getBSkyBlock().getCommandsManager().getCommand("ai"); new IslandLevel(this, acidIslandCmd); new IslandTop(this, acidIslandCmd); diff --git a/src/main/java/bskyblock/addon/level/TopTen.java b/src/main/java/bskyblock/addon/level/TopTen.java index 784822f..91a523b 100644 --- a/src/main/java/bskyblock/addon/level/TopTen.java +++ b/src/main/java/bskyblock/addon/level/TopTen.java @@ -174,11 +174,11 @@ public class TopTen implements Listener { // If welcome warps is present then add warping addon.getAddonByName("BSkyBlock-WelcomeWarps").ifPresent(warp -> { - if (((Warp)warp).getWarpSignsManager().hasWarp(playerUUID)) { + if (((Warp)warp).getWarpSignsManager().hasWarp(world, playerUUID)) { builder.clickHandler((panel, user, click, slot) -> { if (click.equals(ClickType.LEFT)) { user.sendMessage("island.top.warp-to", "[name]", name); - ((Warp)warp).getWarpSignsManager().warpPlayer(user, playerUUID); + ((Warp)warp).getWarpSignsManager().warpPlayer(world, user, playerUUID); } return true; });