@@ -35,15 +35,15 @@ public CommandUsage commandUsage() {
3535 public LiteralArgumentBuilder <CommandContext > register () {
3636 return command ("examplePlugin" )
3737 .then (argument ("toggle" , toggle ()).executes (c -> {
38- PLUGIN_CONFIG .moduleConfig .enabled = getToggle (c , "toggle" );
38+ PLUGIN_CONFIG .exampleModule .enabled = getToggle (c , "toggle" );
3939 // make sure to sync so the module is actually toggled
4040 MODULE .get (ExampleModule .class ).syncEnabledFromConfig ();
4141 c .getSource ().getEmbed ()
42- .title ("Example Plugin " + toggleStrCaps (PLUGIN_CONFIG .moduleConfig .enabled ));
42+ .title ("Example Plugin " + toggleStrCaps (PLUGIN_CONFIG .exampleModule .enabled ));
4343 return OK ;
4444 }))
4545 .then (literal ("delay" ).then (argument ("ticks" , integer (0 )).executes (c -> {
46- PLUGIN_CONFIG .moduleConfig .delayTicks = getInteger (c , "ticks" );
46+ PLUGIN_CONFIG .exampleModule .delayTicks = getInteger (c , "ticks" );
4747 c .getSource ().getEmbed ()
4848 .title ("Delay Set" );
4949 return OK ;
@@ -54,7 +54,7 @@ public LiteralArgumentBuilder<CommandContext> register() {
5454 public void postPopulate (Embed embed ) {
5555 embed
5656 .primaryColor ()
57- .addField ("Enabled" , toggleStr (PLUGIN_CONFIG .moduleConfig .enabled ), false )
58- .addField ("Delay" , PLUGIN_CONFIG .moduleConfig .delayTicks + " ticks" , false );
57+ .addField ("Enabled" , toggleStr (PLUGIN_CONFIG .exampleModule .enabled ), false )
58+ .addField ("Delay" , PLUGIN_CONFIG .exampleModule .delayTicks + " ticks" , false );
5959 }
6060}
0 commit comments