mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-12-25 18:47:56 +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
|
// AcidIsland hook in
|
||||||
getServer().getScheduler().runTask(getBSkyBlock(), () -> {
|
getServer().getScheduler().runTask(getBSkyBlock(), () -> {
|
||||||
this.getBSkyBlock().getAddonsManager().getAddonByName("AcidIsland").ifPresent(a -> {
|
this.getBSkyBlock().getAddonsManager().getAddonByName("AcidIsland").ifPresent(a -> {
|
||||||
getLogger().info("DEBUG: " + getBSkyBlock().getCommandsManager().listCommands());
|
|
||||||
CompositeCommand acidIslandCmd = getBSkyBlock().getCommandsManager().getCommand("ai");
|
CompositeCommand acidIslandCmd = getBSkyBlock().getCommandsManager().getCommand("ai");
|
||||||
new IslandLevel(this, acidIslandCmd);
|
new IslandLevel(this, acidIslandCmd);
|
||||||
new IslandTop(this, acidIslandCmd);
|
new IslandTop(this, acidIslandCmd);
|
||||||
|
@ -174,11 +174,11 @@ public class TopTen implements Listener {
|
|||||||
// If welcome warps is present then add warping
|
// If welcome warps is present then add warping
|
||||||
addon.getAddonByName("BSkyBlock-WelcomeWarps").ifPresent(warp -> {
|
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) -> {
|
builder.clickHandler((panel, user, click, slot) -> {
|
||||||
if (click.equals(ClickType.LEFT)) {
|
if (click.equals(ClickType.LEFT)) {
|
||||||
user.sendMessage("island.top.warp-to", "[name]", name);
|
user.sendMessage("island.top.warp-to", "[name]", name);
|
||||||
((Warp)warp).getWarpSignsManager().warpPlayer(user, playerUUID);
|
((Warp)warp).getWarpSignsManager().warpPlayer(world, user, playerUUID);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user