mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 20:52:34 +00:00
1 parent
6722e7a428
commit
00013865b0
6 files changed
+67
-15
No files matched your search
@@ -19,14 +19,13 @@
|
||||
|
||||
package net.minecraftforge.fml.event.server;
|
||||
|
||||
import com.mojang.brigadier.CommandDispatcher;
|
||||
import net.minecraft.command.CommandSource;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
/**
|
||||
* Called after {@link FMLServerAboutToStartEvent} and before {@link FMLServerStartedEvent}.
|
||||
* This event allows for customizations of the server, such as loading custom commands, perhaps customizing recipes or
|
||||
* other activities.
|
||||
* This event allows for customizations of the server.
|
||||
*
|
||||
* If you need to add commands use {@link net.minecraftforge.event.RegisterCommandsEvent}.
|
||||
*
|
||||
* @author cpw
|
||||
*/
|
||||
@@ -37,7 +36,4 @@ public class FMLServerStartingEvent extends ServerLifecycleEvent
|
||||
super(server);
|
||||
}
|
||||
|
||||
public CommandDispatcher<CommandSource> getCommandDispatcher() {
|
||||
return server.getCommandManager().getDispatcher();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user