Makes sure to initialize KnarLib properly

This commit is contained in:
Kristian Knarvik 2022-11-07 10:05:31 +01:00
parent fc70b0a582
commit 628453e902

View File

@ -1,6 +1,7 @@
package net.knarcraft.minstrel;
import net.citizensnpcs.api.CitizensAPI;
import net.knarcraft.knarlib.KnarLib;
import net.knarcraft.minstrel.command.MinstrelCommand;
import net.knarcraft.minstrel.command.MinstrelTabCompleter;
import net.knarcraft.minstrel.listener.MinstrelListener;
@ -26,6 +27,7 @@ public final class MinstrelPlugin extends JavaPlugin {
public void onEnable() {
// Plugin startup logic
instance = this;
KnarLib.setPlugin(this);
//Register the blacksmith trait with Citizens
CitizensAPI.getTraitFactory().registerTrait(