@@ -89,54 +89,6 @@ public Boolean validate(CommandSource source, ParsedRule<Boolean> currentRule, B
8989 )
9090 public static String commandRaycount = "false" ;
9191
92- @ Rule (
93- desc = "Enables world edit operations" ,
94- category = COMMAND ,
95- validate = ValidateWorldEdit .class
96- )
97- public static String modWorldEdit = "false" ;
98-
99- private static class ValidateWorldEdit extends Validator <String >
100- {
101- @ Override
102- public String validate (CommandSource source , ParsedRule <String > currentRule , String newValue , String string )
103- {
104- if (!newValue .equals ("false" ) && !TISCMConfig .MOD_WORLDEDIT )
105- {
106- return null ;
107- }
108- return newValue ;
109- }
110- public String description ()
111- {
112- return "You must set `TISCMConfig.MOD_WORLDEDIT` to true during mod compiling and have worldedit classes included in .jar to enable world edit" ;
113- }
114- }
115-
116- @ Rule (
117- desc = "Enables spark command" ,
118- category = COMMAND ,
119- validate = ValidateSpark .class
120- )
121- public static String modSpark = "false" ;
122-
123- private static class ValidateSpark extends Validator <String >
124- {
125- @ Override
126- public String validate (CommandSource source , ParsedRule <String > currentRule , String newValue , String string )
127- {
128- if (!newValue .equals ("false" ) && !TISCMConfig .MOD_SPARK )
129- {
130- return null ;
131- }
132- return newValue ;
133- }
134- public String description ()
135- {
136- return "You must set `TISCMConfig.MOD_SPARK` to true during mod compiling and have spark classes included in .jar to enable spark" ;
137- }
138- }
139-
14092 @ Rule (
14193 desc = "enable visualize projectile logger" ,
14294 category = SURVIVAL
@@ -1229,7 +1181,7 @@ private static class LanguageValidator extends Validator<String>
12291181 extra = "https://github.com/Fallen-Breath/litematica-server-paster" ,
12301182 category = CREATIVE
12311183 )
1232- public static boolean litematicaServerPaster = false ;
1184+ public static boolean modLitematicaServerPaster = false ;
12331185
12341186 // RSMM
12351187 @ Rule (
@@ -1239,5 +1191,53 @@ private static class LanguageValidator extends Validator<String>
12391191 COMMAND
12401192 }
12411193 )
1242- public static boolean redstoneMultimeter = false ;
1194+ public static boolean modRedstoneMultimeter = false ;
1195+
1196+ @ Rule (
1197+ desc = "Enables spark command" ,
1198+ category = COMMAND ,
1199+ validate = ValidateSpark .class
1200+ )
1201+ public static String modSpark = "false" ;
1202+
1203+ private static class ValidateSpark extends Validator <String >
1204+ {
1205+ @ Override
1206+ public String validate (CommandSource source , ParsedRule <String > currentRule , String newValue , String string )
1207+ {
1208+ if (!newValue .equals ("false" ) && !TISCMConfig .MOD_SPARK )
1209+ {
1210+ return null ;
1211+ }
1212+ return newValue ;
1213+ }
1214+ public String description ()
1215+ {
1216+ return "You must set `TISCMConfig.MOD_SPARK` to true during mod compiling and have spark classes included in .jar to enable spark" ;
1217+ }
1218+ }
1219+
1220+ @ Rule (
1221+ desc = "Enables world edit operations" ,
1222+ category = COMMAND ,
1223+ validate = ValidateWorldEdit .class
1224+ )
1225+ public static String modWorldEdit = "false" ;
1226+
1227+ private static class ValidateWorldEdit extends Validator <String >
1228+ {
1229+ @ Override
1230+ public String validate (CommandSource source , ParsedRule <String > currentRule , String newValue , String string )
1231+ {
1232+ if (!newValue .equals ("false" ) && !TISCMConfig .MOD_WORLDEDIT )
1233+ {
1234+ return null ;
1235+ }
1236+ return newValue ;
1237+ }
1238+ public String description ()
1239+ {
1240+ return "You must set `TISCMConfig.MOD_WORLDEDIT` to true during mod compiling and have worldedit classes included in .jar to enable world edit" ;
1241+ }
1242+ }
12431243}
0 commit comments