mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fixes #1377
This commit is contained in:
parent
6074fc8033
commit
f1d581a8d8
@ -31,6 +31,9 @@ public class Reload extends SubCommand {
|
||||
@Override
|
||||
public void run(PlotArea area) {
|
||||
ConfigurationSection worldSection = PS.get().worlds.getConfigurationSection("worlds." + area.worldname);
|
||||
if (worldSection == null) {
|
||||
worldSection = PS.get().worlds.createSection("worlds." + area.worldname);
|
||||
}
|
||||
if (area.TYPE != 2 || !worldSection.contains("areas")) {
|
||||
area.saveConfiguration(worldSection);
|
||||
area.loadDefaultConfiguration(worldSection);
|
||||
|
Loading…
Reference in New Issue
Block a user