mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 22:13:12 +00:00
Fixed setup command
This commit is contained in:
parent
5e2313a6cb
commit
702e2bf975
9 changed files with 86 additions and 44 deletions
|
@ -902,7 +902,6 @@ import java.util.concurrent.TimeUnit;
|
|||
*
|
||||
* @param plotworld World to create the section for
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public static void createConfiguration(final PlotWorld plotworld) {
|
||||
final Map<String, Object> options = new HashMap<>();
|
||||
|
||||
|
@ -930,7 +929,6 @@ import java.util.concurrent.TimeUnit;
|
|||
|
||||
final Set<String> worlds = (config.contains("worlds") ? config.getConfigurationSection("worlds").getKeys(false) : new HashSet<String>());
|
||||
|
||||
// Let's create these here instead
|
||||
final PlotWorld plotWorld;
|
||||
final PlotGenerator plotGenerator;
|
||||
final PlotManager plotManager;
|
||||
|
@ -948,7 +946,7 @@ import java.util.concurrent.TimeUnit;
|
|||
if (!config.contains(path)) {
|
||||
config.createSection(path);
|
||||
}
|
||||
|
||||
|
||||
plotWorld.saveConfiguration(config.getConfigurationSection(path));
|
||||
plotWorld.loadDefaultConfiguration(config.getConfigurationSection(path));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue