mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-23 18:45:17 +01:00
Added softdepend to addon.yml. Removed 1 tick delays in onEnable()
This commit is contained in:
parent
2f268ac172
commit
c8e753af16
@ -114,9 +114,8 @@ public class Level extends Addon {
|
||||
// Start the top ten and register it for clicks
|
||||
topTen = new TopTen(this);
|
||||
registerListener(topTen);
|
||||
// Register commands - run one tick later to allow all addons to load
|
||||
// Register commands
|
||||
// AcidIsland hook in
|
||||
getServer().getScheduler().runTask(getPlugin(), () -> {
|
||||
this.getPlugin().getAddonsManager().getAddonByName("AcidIsland").ifPresent(a -> {
|
||||
CompositeCommand acidIslandCmd = getPlugin().getCommandsManager().getCommand("ai");
|
||||
if (acidIslandCmd != null) {
|
||||
@ -138,7 +137,6 @@ public class Level extends Addon {
|
||||
new AdminTop(this, bsbAdminCmd);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Register new island listener
|
||||
registerListener(new NewIslandListener(this));
|
||||
|
@ -2,6 +2,8 @@ name: BentoBox-Level
|
||||
main: bentobox.addon.level.Level
|
||||
version: 0.1
|
||||
|
||||
softdepend: AcidIsland, BSkyBlock
|
||||
|
||||
authors: tastybento
|
||||
|
||||
permissions:
|
||||
|
Loading…
Reference in New Issue
Block a user