Skip to content

Commit

Permalink
Updated to latest Slimefun build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBusyBiscuit committed Feb 16, 2020
1 parent 307365d commit 326ae12
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;

import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;
import me.mrCookieSlime.Slimefun.Lists.RecipeType;
import me.mrCookieSlime.Slimefun.Objects.Category;
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
Expand All @@ -13,7 +14,7 @@
import me.mrCookieSlime.Slimefun.cscorelib2.config.Config;
import me.mrCookieSlime.Slimefun.cscorelib2.item.CustomItem;

public class SlimefunAddon extends JavaPlugin {
public class ExampleAddon extends JavaPlugin implements SlimefunAddon {

@Override
public void onEnable() {
Expand Down Expand Up @@ -56,12 +57,23 @@ null, new ItemStack(Material.DIAMOND), null,
// RecipeType.ENHANCED_CRAFTING_TABLE refers to the machine in which this item is crafted in.
// Recipy Types from Slimefun itself will automatically add the recipe to that machine
SlimefunItem item = new SlimefunItem(category, slimefunItem, RecipeType.ENHANCED_CRAFTING_TABLE, recipe);
item.register();
item.register(this);
}

@Override
public void onDisable() {
// Logic for disabling the plugin...
}

@Override
public String getBugTrackerURL() {
// You can return a link to your Bug Tracker instead of null here
return null;
}

@Override
public JavaPlugin getJavaPlugin() {
return this;
}

}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: CHANGEME
description: A generic Slimefun4-Addon
website: https://github.com/TheBusyBiscuit/Slimefun4-Addon

main: me.CHANGEME.slimefunaddon.SlimefunAddon
main: me.CHANGEME.slimefunaddon.ExampleAddon
depend: [Slimefun]

api-version: 1.14

0 comments on commit 326ae12

Please sign in to comment.