Implemented Enchantment API

This commit is contained in:
Nathan Adams
2011-11-27 00:39:25 +00:00
parent ba608f55e4
commit eb7bd5f23b
7 changed files with 545 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ import jline.ConsoleReader;
import net.minecraft.server.ChunkCoordinates;
import net.minecraft.server.ConvertProgressUpdater;
import net.minecraft.server.Convertable;
import net.minecraft.server.Enchantment;
import net.minecraft.server.EntityPlayer;
import net.minecraft.server.EntityTracker;
import net.minecraft.server.IProgressUpdate;
@@ -105,6 +106,11 @@ public final class CraftServer implements Server {
Bukkit.setServer(this);
// Register all the Enchantments now so we can stop new registration immediately after
Enchantment.DAMAGE_ALL.getClass();
org.bukkit.enchantments.Enchantment.stopAcceptingRegistrations();
// Ugly hack :(
if (!Main.useConsole) {
getLogger().info("Console input is disabled due to --noconsole command argument");
}