crash--
This commit is contained in:
parent
e509c0ef59
commit
5e10c6fe87
@ -77,8 +77,12 @@ public class RegionCommand implements CommandExecutor {
|
||||
p.sendMessage("City region set to "+r.name());
|
||||
} else if (subCommand.equals("regen") && p.hasPermission("regions.create")) {
|
||||
Region r = m_plugin.regionManager().nearestRegion(p.getLocation());
|
||||
m_plugin.regenRegionPost(r);
|
||||
p.sendMessage("Region post regenerated.");
|
||||
if (r == null) {
|
||||
p.sendMessage("There are no regions in this world.");
|
||||
} else {
|
||||
m_plugin.regenRegionPost(r);
|
||||
p.sendMessage("Region post regenerated.");
|
||||
}
|
||||
} else {
|
||||
p.sendMessage("Unknown operation. Options are create, remove, city.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user