Add /region load and /region save

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

View File

@ -83,6 +83,12 @@ public class RegionCommand implements CommandExecutor {
m_plugin.regenRegionPost(r); m_plugin.regenRegionPost(r);
p.sendMessage("Region post regenerated."); p.sendMessage("Region post regenerated.");
} }
} else if (subCommand.equals("save") && p.hasPermission("regions.create")) {
m_plugin.saveRegions();
p.sendMessage("Regions saved.");
} else if (subCommand.equals("load") && p.hasPermission("regions.create")) {
m_plugin.loadRegions();
p.sendMessage("Regions loaded.");
} else { } else {
p.sendMessage("Unknown operation. Options are create, remove, city."); p.sendMessage("Unknown operation. Options are create, remove, city.");
} }