Skip to content

Commit

Permalink
Update to BentoBox 1.5.0 Release version.
Browse files Browse the repository at this point in the history
Remove Level and Economy checks as they currently are not used.
  • Loading branch information
BONNe committed Jun 14, 2019
1 parent ba018d7 commit 07ad3e6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<powermock.version>1.7.4</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.13.2-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.5.0-SNAPSHOT</bentobox.version>
<bentobox.version>1.5.0</bentobox.version>
<level.version>1.4.0</level.version>
<vault.version>68f14ec</vault.version>
<!-- Revision variable removes warning about dynamic version -->
Expand Down
40 changes: 20 additions & 20 deletions src/main/java/world/bentobox/voidportals/VoidPortalsAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,29 @@ public void onEnable()

Optional<Addon> level = this.getAddonByName("Level");

if (!level.isPresent())
{
this.logWarning("Level add-on not found so VoidPortals will not work correctly!");
this.levelAddon = null;
}
else
{
this.levelProvided = true;
this.levelAddon = (Level) level.get();
}
// if (!level.isPresent())
// {
// this.logWarning("Level add-on not found so VoidPortals will not work correctly!");
// this.levelAddon = null;
// }
// else
// {
// this.levelProvided = true;
// this.levelAddon = (Level) level.get();
// }

Optional<VaultHook> vault = this.getPlugin().getVault();

if (!vault.isPresent() || !vault.get().hook())
{
this.vaultHook = null;
this.logWarning("Economy plugin not found so money options will not work!");
}
else
{
this.economyProvided = true;
this.vaultHook = vault.get();
}
// if (!vault.isPresent() || !vault.get().hook())
// {
// this.vaultHook = null;
// this.logWarning("Economy plugin not found so money options will not work!");
// }
// else
// {
// this.economyProvided = true;
// this.vaultHook = vault.get();
// }


// Register the listener.
Expand Down

0 comments on commit 07ad3e6

Please sign in to comment.