This commit is contained in:
Torrie Fischer 2012-04-24 16:51:23 -04:00
parent e509c0ef59
commit 5e10c6fe87

View File

@ -77,8 +77,12 @@ public class RegionCommand implements CommandExecutor {
p.sendMessage("City region set to "+r.name()); p.sendMessage("City region set to "+r.name());
} else if (subCommand.equals("regen") && p.hasPermission("regions.create")) { } else if (subCommand.equals("regen") && p.hasPermission("regions.create")) {
Region r = m_plugin.regionManager().nearestRegion(p.getLocation()); Region r = m_plugin.regionManager().nearestRegion(p.getLocation());
if (r == null) {
p.sendMessage("There are no regions in this world.");
} else {
m_plugin.regenRegionPost(r); m_plugin.regenRegionPost(r);
p.sendMessage("Region post regenerated."); p.sendMessage("Region post regenerated.");
}
} else { } else {
p.sendMessage("Unknown operation. Options are create, remove, city."); p.sendMessage("Unknown operation. Options are create, remove, city.");
} }