You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
906 B
23 lines
906 B
--- ../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 |
|
}
|
|
|