Makes sure to initialize KnarLib properly
This commit is contained in:
parent
fc70b0a582
commit
628453e902
@ -1,6 +1,7 @@
|
|||||||
package net.knarcraft.minstrel;
|
package net.knarcraft.minstrel;
|
||||||
|
|
||||||
import net.citizensnpcs.api.CitizensAPI;
|
import net.citizensnpcs.api.CitizensAPI;
|
||||||
|
import net.knarcraft.knarlib.KnarLib;
|
||||||
import net.knarcraft.minstrel.command.MinstrelCommand;
|
import net.knarcraft.minstrel.command.MinstrelCommand;
|
||||||
import net.knarcraft.minstrel.command.MinstrelTabCompleter;
|
import net.knarcraft.minstrel.command.MinstrelTabCompleter;
|
||||||
import net.knarcraft.minstrel.listener.MinstrelListener;
|
import net.knarcraft.minstrel.listener.MinstrelListener;
|
||||||
@ -26,6 +27,7 @@ public final class MinstrelPlugin extends JavaPlugin {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
// Plugin startup logic
|
// Plugin startup logic
|
||||||
instance = this;
|
instance = this;
|
||||||
|
KnarLib.setPlugin(this);
|
||||||
|
|
||||||
//Register the blacksmith trait with Citizens
|
//Register the blacksmith trait with Citizens
|
||||||
CitizensAPI.getTraitFactory().registerTrait(
|
CitizensAPI.getTraitFactory().registerTrait(
|
||||||
|
Loading…
Reference in New Issue
Block a user