Skip to content

Commit

Permalink
Bump PluginBase
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Dec 20, 2024
1 parent 2635cd8 commit 4521f3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ minecraft_version=1.21.1-R0.1-SNAPSHOT
# Dependencies
protocollib_version=5.3.0
#ld_version=10.0.33
pluginbase_version=292d5f3a
pluginbase_version=f19aea37
gsit_version=1.6.0
papi_version=2.11.5
bstats_version=3.0.2
Expand Down
21 changes: 7 additions & 14 deletions src/main/java/xyz/nifeather/morph/MorphPlugin.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package xyz.nifeather.morph;

import com.ticxo.modelengine.api.ModelEngineAPI;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import net.kyori.adventure.text.minimessage.MiniMessage;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.event.Listener;
import org.bukkit.plugin.PluginManager;
import org.bukkit.scoreboard.Scoreboard;
import org.jetbrains.annotations.ApiStatus;
import xiamomc.pluginbase.ScheduleInfo;
import xyz.nifeather.morph.abilities.AbilityManager;
import xyz.nifeather.morph.commands.MorphCommandManager;
import xyz.nifeather.morph.config.MorphConfigManager;
Expand Down Expand Up @@ -63,7 +65,7 @@ public static String getMorphNameSpace()
}

@Override
public String getNameSpace()
public String getNamespace()
{
return getMorphNameSpace();
}
Expand Down Expand Up @@ -122,9 +124,9 @@ private void printImportantWarning(boolean critical, String... warnings)
}

@Override
public void onEnable()
protected void enable()
{
super.onEnable();
super.enable();

pluginManager = Bukkit.getPluginManager();
var bukkitVersion = Bukkit.getMinecraftVersion();
Expand Down Expand Up @@ -256,17 +258,8 @@ public void onEnable()
IconLookup.instance();
}

@ApiStatus.Internal
public void crash(Throwable t)
{
logger.error(t.getLocalizedMessage());
t.printStackTrace();

this.onDisable();
}

@Override
public void onDisable()
public void disable()
{
if (!getServer().isStopping())
{
Expand Down Expand Up @@ -312,7 +305,7 @@ public void onDisable()
e.printStackTrace();
}

super.onDisable();
super.disable();
}

private void registerListeners(Listener[] listeners)
Expand Down

0 comments on commit 4521f3e

Please sign in to comment.