Clear and recalculate regions after a reload

This commit is contained in:
Torrie Fischer 2012-04-25 16:24:41 -04:00
parent e699f3525a
commit 7210498517

View File

@ -95,8 +95,10 @@ public class Plugin extends JavaPlugin {
public void loadRegions() { public void loadRegions() {
reloadConfig(); reloadConfig();
ConfigurationSection section = getConfig().getConfigurationSection("worlds"); ConfigurationSection section = getConfig().getConfigurationSection("worlds");
m_regions.clear();
if (section != null) if (section != null)
m_regions.loadRegions(section, getServer()); m_regions.loadRegions(section, getServer());
recalculatePlayerRegions();
} }
public void saveRegions() { public void saveRegions() {