Fixed the plugin
This commit is contained in:
parent
b860ce8d14
commit
b570399eb6
1 changed files with 5 additions and 2 deletions
|
|
@ -11,6 +11,8 @@ import org.bukkit.plugin.Plugin;
|
|||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import xyz.tronax.rottensmelt.commands.CMD_rottensmelt;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public final class RottenSmelt extends JavaPlugin {
|
||||
public static String prefix = "§cRotten§6Smelt §8|";
|
||||
|
||||
|
|
@ -25,7 +27,7 @@ public final class RottenSmelt extends JavaPlugin {
|
|||
}
|
||||
|
||||
public void register() {
|
||||
getCommand("rottensmelt").setExecutor(new CMD_rottensmelt());
|
||||
Objects.requireNonNull(getCommand("rottensmelt")).setExecutor(new CMD_rottensmelt());
|
||||
}
|
||||
|
||||
public void onDisable() {
|
||||
|
|
@ -35,8 +37,9 @@ public final class RottenSmelt extends JavaPlugin {
|
|||
public void FurnaceRecipes() {
|
||||
ItemStack l = new ItemStack(Material.LEATHER, 1);
|
||||
NamespacedKey keyy = new NamespacedKey((Plugin)this, "RottenSmelt");
|
||||
NamespacedKey skeyy = new NamespacedKey((Plugin) this, "RottenSmoke");
|
||||
FurnaceRecipe rftl = new FurnaceRecipe(keyy, l, Material.ROTTEN_FLESH, 0.1F, 160);
|
||||
SmokingRecipe srftl = new SmokingRecipe(keyy, l, Material.ROTTEN_FLESH, 0.1F, 60);
|
||||
SmokingRecipe srftl = new SmokingRecipe(skeyy, l, Material.ROTTEN_FLESH, 0.1F, 60);
|
||||
Bukkit.addRecipe((Recipe)rftl);
|
||||
Bukkit.addRecipe((Recipe)srftl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue