Skip to content

Commit

Permalink
Built against Java 16 for Mc 1.17 onwards.
Browse files Browse the repository at this point in the history
Integrates with and requires TreeboRoots for update checking.
  • Loading branch information
ShakeforProtein committed Jun 12, 2021
1 parent 6468109 commit 550907a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/shakeforprotein/shakenbt/ShakeNBT.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public final class ShakeNBT extends JavaPlugin {
public void onEnable() {
// Plugin startup logic
if(Bukkit.getPluginManager().getPlugin("TreeboRoots") != null && Bukkit.getPluginManager().getPlugin("TreeboRoots").isEnabled()) {
roots = (TreeboRoots) Bukkit.getPluginManager().getPlugin("TreeboRoots");
roots = ((TreeboRoots) this.getServer().getPluginManager().getPlugin("TreeboRoots")).getInstance();
roots.updateHandler.registerPlugin(this, "TreeboMC", "ShakeNBT");
this.getCommand("nbtadd").setExecutor(new AddNBT(this));
this.getCommand("nbtclear").setExecutor(new ClearNBT(this));
Expand Down

0 comments on commit 550907a

Please sign in to comment.