Send region updates after a teleport

This commit is contained in:
Torrie Fischer 2012-04-24 16:51:33 -04:00
parent 5e10c6fe87
commit ef6a08b7a5
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class CityRegionCommand implements CommandExecutor {
if (city != null) {
if (p.getLocation().distance(nearest.teleportLocation()) <= 5) {
p.teleport(city.teleportLocation(), TeleportCause.COMMAND);
m_plugin.recalculatePlayerRegions();
} else {
sender.sendMessage("You must be within 5 blocks of a region center.");
}

View File

@ -44,6 +44,7 @@ public class HomeRegionCommand implements CommandExecutor {
if (home != null) {
if (p.getLocation().distance(nearest.teleportLocation()) <= 5) {
p.teleport(home.teleportLocation(), TeleportCause.COMMAND);
m_plugin.recalculatePlayerRegions();
} else {
sender.sendMessage("You must be within 5 blocks of a region center.");
}