No need to recalculate player regions on create/remove from within the command

This commit is contained in:
Trever Fischer 2012-04-25 17:52:32 -04:00
parent ffd585e67c
commit d58663b8fa

View File

@ -58,7 +58,6 @@ public class RegionCommand implements CommandExecutor {
m_plugin.regionManager().addRegion(r); m_plugin.regionManager().addRegion(r);
m_plugin.regenRegionPost(r); m_plugin.regenRegionPost(r);
p.teleport(r.teleportLocation()); p.teleport(r.teleportLocation());
m_plugin.recalculatePlayerRegions();
} else if (subCommand.equals("remove") && p.hasPermission("regions.remove")) { } else if (subCommand.equals("remove") && p.hasPermission("regions.remove")) {
Region r = m_plugin.regionManager().nearestRegion(p.getLocation()); Region r = m_plugin.regionManager().nearestRegion(p.getLocation());
if (r == null) { if (r == null) {
@ -66,7 +65,6 @@ public class RegionCommand implements CommandExecutor {
return true; return true;
} }
m_plugin.regionManager().removeRegion(r); m_plugin.regionManager().removeRegion(r);
m_plugin.recalculatePlayerRegions();
} else if (subCommand.equals("city") && p.hasPermission("regions.setCity")) { } else if (subCommand.equals("city") && p.hasPermission("regions.setCity")) {
Region r = m_plugin.regionManager().nearestRegion(p.getLocation()); Region r = m_plugin.regionManager().nearestRegion(p.getLocation());
if (r == null) { if (r == null) {