77
88import io .github .axle2005 .clearmob .ClearMob ;
99
10-
11-
1210public class Register {
13-
14-
15-
16- public Register (ClearMob plugin )
17- {
11+
12+ public Register (ClearMob plugin ) {
1813 CommandSpec run = CommandSpec .builder ().permission ("clearmob.run" ).description (Text .of ("Clear entities" ))
19- .arguments (GenericArguments .onlyOne (GenericArguments .string (Text .of ("tileentity|entity|items" ))))
20- . arguments ( GenericArguments .optional (GenericArguments .string (Text .of ("name" ))))
14+ .arguments (GenericArguments .onlyOne (GenericArguments .string (Text .of ("tileentity|entity|items" ))),
15+ GenericArguments .optional (GenericArguments .string (Text .of ("name" ))))
2116 .executor (new CommandRun (plugin )).build ();
22-
17+
2318 CommandSpec reload = CommandSpec .builder ().permission ("clearmob.reload" ).description (Text .of ("Clear entities" ))
2419 .executor (new CommandReload (plugin )).build ();
2520
26- //CommandSpec add = CommandSpec.builder().permission("clearmob.add").description(Text.of("Add's Entity to List"))
27- // .executor(new CommandAdd(plugin, config)).build();
21+ // CommandSpec add =
22+ // CommandSpec.builder().permission("clearmob.add").description(Text.of("Add's
23+ // Entity to List"))
24+ // .executor(new CommandAdd(plugin, config)).build();
2825
2926 CommandSpec dump = CommandSpec .builder ().permission ("clearmob.dump" )
3027 .description (Text .of ("Dump's World Entities to Console/Logs" ))
3128 .arguments (GenericArguments .onlyOne (GenericArguments .string (Text .of ("tileentity|entity|nearby|all" ))))
3229 .executor (new CommandDump (plugin )).build ();
33-
30+
3431 CommandSpec info = CommandSpec .builder ().permission ("clearmob.info" )
3532 .arguments (GenericArguments .onlyOne (GenericArguments .string (Text .of ("range/hand" ))),
3633 GenericArguments .optional (GenericArguments .integer (Text .of ("range" ))))
37- .description (Text .of ("Gets the Item Id of the item in hand. " ))
38- .executor ( new CommandInfo ( plugin )). build ();
39-
34+ .description (Text .of ("Gets the Item Id of the item in hand. " )). executor ( new CommandInfo ( plugin ))
35+ .build ();
36+
4037 CommandSpec stats = CommandSpec .builder ().permission ("clearmob.tps" )
41- .description (Text .of ("Provides current stats of server" ))
42- .executor (new CommandStats ()).build ();
38+ .description (Text .of ("Provides current stats of server" )).executor (new CommandStats ()).build ();
4339
4440 CommandSpec clearmob = CommandSpec .builder ().description (Text .of ("ClearMob Command" )).child (run , "run" )
4541 .child (dump , "dump" ).child (stats , "tps" ).child (reload , "reload" ).child (info , "info" )
@@ -49,5 +45,5 @@ public Register(ClearMob plugin)
4945
5046 Sponge .getCommandManager ().register (plugin , clearmob , "ClearMob" );
5147 }
52-
48+
5349}
0 commit comments