Home›Java›Mods›NoFurnaceExp
NoFurnaceExp
ModsJava

NoFurnaceExp

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
This tiny plugin will prevent exp to be issued when a player extract an item/items from a furnace.

Command:
Permissions:
Code:
Spoiler
Code (Text):

package com.vk2gpz.nofurnaceexp;

import org.bukkit.command.*;
import org.bukkit.event.*;
import org.bukkit.event.inventory.FurnaceExtractEvent;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.*;

public class NoFurnaceExp extends JavaPlugin implements CommandExecutor, Listener {
   private boolean noExp;
   
   @Override
   public void onEnable() {
      this.saveDefaultConfig();
      noExp = getConfig().getBoolean("NoExpMode", true);
      getCommand("nfexp").setExecutor(this);
      getServer().getPluginManager().registerEvents(this, this);
     
      PluginDescriptionFile pdfile = getDescription();
      getLogger().info(pdfile.getName() + " version " + pdfile.getVersion() + " is Enabled");
   }
   
   @Override
   public void onDisable() {
      PluginDescriptionFile pdFile = getDescription();
      getLogger().info(pdFile.getName() + " version " + pdFile.getVersion() + " is Disabled");
   }
   
   
   @Override
   public boolean onCommand(CommandSender s, Command c, String l, String[] a) {
      if (s.hasPermission("nfexp.toggle")) {
         noExp = !noExp;
         s.sendMessage("§6No exp mode §c" + (noExp ? "enabled" : "disabled") + "§6.");
      }
      return true;
   }
   
   
   @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
   public void onFurnaceExtract(FurnaceExtractEvent e) {
      if (noExp) {
         e.setExpToDrop(0);
      }
   }
}
 

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

NoFurnaceExp is a free Minecraft Java mod. Downloaded 113 times (via Spigot). Download it and open it directly in the game.

Explore more