mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-12-24 18:17:41 +01:00
Updated to match warps.
This commit is contained in:
parent
a09d974d95
commit
35d9e418fe
@ -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);
|
||||
|
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user