3
0

Initial commit (Forge 1291).

This commit is contained in:
gamerforEA
2015-03-22 20:38:04 +03:00
commit 16773ead6a
611 changed files with 64826 additions and 0 deletions

View File

@ -0,0 +1,23 @@
--- ../src-base/minecraft/cpw/mods/fml/common/event/FMLServerStartingEvent.java
+++ ../src-work/minecraft/cpw/mods/fml/common/event/FMLServerStartingEvent.java
@@ -16,6 +16,7 @@
import net.minecraft.command.ICommand;
import net.minecraft.server.MinecraftServer;
import cpw.mods.fml.common.LoaderState.ModState;
+import org.bukkit.command.Command; // Cauldron
public class FMLServerStartingEvent extends FMLStateEvent
{
@@ -43,4 +44,12 @@
CommandHandler ch = (CommandHandler) getServer().getCommandManager();
ch.registerCommand(command);
}
+
+ // Cauldron start - used for mods to register a Bukkit command
+ public void registerServerCommand(String fallbackPrefix, Command command)
+ {
+ org.bukkit.command.SimpleCommandMap commandMap = getServer().server.getCommandMap();
+ commandMap.register(fallbackPrefix, command);
+ }
+ // Cauldron end
}