ConfigEdit
ConfigEdit is a lightweight Bukkit plugin that provides one simple command for editing config files in other plugins. If you get tired of constantly opening a plugin's config file just to change one minor thing, than this plugin is for you.
Command
ConfigEdit's edit command has a simple, easy syntax for editing config files:
/edit theplugin the.key:value otherconfig
Where:
- "theplugin" is the plugin of the folder that ConfigEdit will look in for the config file. So in this case the folder would be plugins/theplugin.
- "the.key:value" is the key in the config and the value that key will be set to, separated by a colon. So the result in the config (in this case, otherconfig) might look like:
the: key: value
- "otherconfig" is the name of the config file to be edited in plugins/theplugin. If the name of the config is not specified, it will default to "config".
You can also set lists in the config. For example:
- /edit theplugin the.key:value1,value2,value3 otherconfig
Which in the config might look like:
the: key: - value1 - value2 - value3
If you want to add values to already existing configs, you could do, for example:
- /edit theplugin the.key:+value4,value5,value6 otherconfig
Which might look like this in the config:
the: key: - value1 - value2 - value3 - value4 - value5 - value6
Say you wanted to remove value1, 2, and 3 from the config. You could do:
- /edit theplugin the.key:-value1,value2,value3 otherconfig
Which might look like:
the: key: - value4 - value5 - value6
If you decided you wanted to remove the.key altogether, just set the value to null:
- /edit theplugin the.key:null otherconfig
Permissions
ConfigEdit has one permission:
- configedit.command
Metrics
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Developers
Feel like you can improve the plugin in some way? Send me a pull request on Github: https://github.com/techboy291/ConfigEdit
Did it still work in 2021 with 1.18 ?
What Means Folder Path and how can I use it?
Hey Can you make it that I can select a other map in the map from my ThePlugin map? I love the plugin but it doesnt work because I cant select a 2nd map in ThePlugins folder
This shall be a useful plugin that can be used widely. I am going to translate it and re-post it in a Chinese forum called "mcbbs". I will give an address linking back to this page.
@Maved145 @Bammerbom Oh, of course, thanks. I'll look into it.
@KevinABC96 Thanks for the suggestions. I do hope to add some of those things in the future. However I don't want to start completely replacing using a file explorer, this was more intended so you don't have to go through the hassle of connecting to ftp servers to change the small stuff.
@Bammerbom
@techboy291
He means the comments. When you save a config using saveConfig(); it removes all the comments.
@Bammerbom
Sorry, I'm not really sure what you mean.
Can you make it so it doesnt remove every # (note) when setting a value?