Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/main/java/de/j/stationofdoom/crafting/DebugStick.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package de.j.stationofdoom.crafting;

import de.j.stationofdoom.main.Main;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapelessRecipe;

public class DebugStick extends ShapelessRecipe {

public DebugStick() {
super(new NamespacedKey(Main.getPlugin(), "DebugStick"), new ItemStack(Material.DEBUG_STICK));
addIngredient(1, Material.DIAMOND);
addIngredient(1, Material.STICK);
}

/*public ShapelessRecipe debugStickRecipe() {
NamespacedKey key = new NamespacedKey(Main.getPlugin(), "DebugStick");
ItemStack item = new ItemStack(Material.DEBUG_STICK);

ShapelessRecipe recipe = new ShapelessRecipe(key, item);
recipe.addIngredient(1, Material.DIAMOND);
recipe.addIngredient(1, Material.STICK);

return recipe;
}*/
}
4 changes: 4 additions & 0 deletions src/main/java/de/j/stationofdoom/main/Main.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package de.j.stationofdoom.main;

import de.j.stationofdoom.cmd.*;
import de.j.stationofdoom.crafting.DebugStick;
import de.j.stationofdoom.enchants.CustomEnchants;
import de.j.stationofdoom.enchants.FlightEvents;
import de.j.stationofdoom.enchants.FurnaceEvents;
import de.j.stationofdoom.enchants.TelepathyEvents;
Expand Down Expand Up @@ -92,6 +94,8 @@ public void onEnable() {
pluginManager.registerEvents(new ChangeLanguageGUI(), this);
pluginManager.registerEvents(new BowComboListener(), this);

getServer().addRecipe(new DebugStick());

//CustomEnchants.register(); -> see custom enchants class for more info

WhoIsOnline.init();
Expand Down