mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-11-12 01:14:27 +00:00
Add command to reload config from disk
Also bump version number, as we're relatively close to a release and it's frustrating having to bump it when putting out previews.
This commit is contained in:
1 parent
678462d2db
commit
20dcb32bae
3 files changed
+27
-8
No files matched your search
@@ -346,6 +346,20 @@ public final class CommandComputerCraft extends CommandDelegate
|
||||
displayTimings( context );
|
||||
}
|
||||
} );
|
||||
|
||||
root.register( new SubCommandBase(
|
||||
"reload", "Reload the ComputerCraft config file", UserLevel.OWNER_OP,
|
||||
"Reload the ComputerCraft config file"
|
||||
)
|
||||
{
|
||||
@Override
|
||||
public void execute( @Nonnull CommandContext context, @Nonnull List<String> arguments )
|
||||
{
|
||||
ComputerCraft.loadConfig();
|
||||
ComputerCraft.syncConfig();
|
||||
context.getSender().sendMessage( new TextComponentString( "Reloaded config" ) );
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
return root;
|
||||
|
||||
Reference in new issue
Block a user