Fixes bug where world was not being recognized.

https://github.com/BentoBoxWorld/addon-welcomewarpsigns/issues/8
This commit is contained in:
tastybento 2018-10-05 15:32:42 -07:00
parent e829efc962
commit 84bf30d77a
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public class Warp extends Addon {
if (bsbIslandCmd != null) {
new WarpCommand(this, bsbIslandCmd);
new WarpsCommand(this, bsbIslandCmd);
registeredWorlds.add(plugin.getIWM().getWorld(BSKYBLOCK));
registeredWorlds.add(bsbIslandCmd.getWorld());
}
});
// AcidIsland hook in
@ -73,7 +73,7 @@ public class Warp extends Addon {
if (acidIslandCmd != null) {
new WarpCommand(this, acidIslandCmd);
new WarpsCommand(this, acidIslandCmd);
registeredWorlds.add(plugin.getIWM().getWorld(ACIDISLAND));
registeredWorlds.add(acidIslandCmd.getWorld());
}
});