File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
src/main/java/com/mcmoddev/orespawn Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1111import com .mcmoddev .orespawn .api .SpawnEntry ;
1212import com .mcmoddev .orespawn .commands .AddOreCommand ;
1313import com .mcmoddev .orespawn .commands .ClearChunkCommand ;
14+ import com .mcmoddev .orespawn .commands .WriteConfigsCommand ;
1415import com .mcmoddev .orespawn .commands .DumpBiomesCommand ;
1516import com .mcmoddev .orespawn .data .Config ;
1617import com .mcmoddev .orespawn .api .SpawnLogic ;
@@ -105,5 +106,6 @@ public void onServerStarting(FMLServerStartingEvent ev) {
105106 ev .registerServerCommand (new ClearChunkCommand ());
106107 ev .registerServerCommand (new DumpBiomesCommand ());
107108 ev .registerServerCommand (new AddOreCommand ());
109+ ev .registerServerCommand (new WriteConfigsCommand ());
108110 }
109111}
Original file line number Diff line number Diff line change 1+ package com .mcmoddev .orespawn .commands ;
2+
3+ import com .mcmoddev .orespawn .OreSpawn ;
4+
5+ import net .minecraft .command .CommandBase ;
6+ import net .minecraft .command .CommandException ;
7+ import net .minecraft .command .ICommandSender ;
8+ import net .minecraft .server .MinecraftServer ;
9+
10+ public class WriteConfigsCommand extends CommandBase {
11+
12+ @ Override
13+ public String getName () {
14+ return "osSaveConfigs" ;
15+ }
16+
17+ @ Override
18+ public String getUsage (ICommandSender sender ) {
19+ return "/osSaveConfigs" ;
20+ }
21+
22+ @ Override
23+ public void execute (MinecraftServer server , ICommandSender sender , String [] args ) throws CommandException {
24+ OreSpawn .writer .writeSpawnEntries ();
25+ }
26+
27+ }
You can’t perform that action at this time.
0 commit comments