crash--
This commit is contained in:
parent
a83dae7eba
commit
2a8cc4f285
@ -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());
|
||||||
m_plugin.regenRegionPost(r);
|
if (r == null) {
|
||||||
p.sendMessage("Region post regenerated.");
|
p.sendMessage("There are no regions in this world.");
|
||||||
|
} else {
|
||||||
|
m_plugin.regenRegionPost(r);
|
||||||
|
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.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user