Improvement for AdminZone handler.
This commit is contained in:
parent
3333b74f66
commit
09934692ee
@ -130,9 +130,7 @@ public class AdminZone implements IAdminCommandHandler
|
||||
adminReply.replace("%SCRIPT%", activeChar.isInsideZone(ZoneId.SCRIPT) ? "<font color=\"LEVEL\">YES</font>" : "NO");
|
||||
|
||||
final StringBuilder zones = new StringBuilder(100);
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getRegion(activeChar).getZones().values())
|
||||
{
|
||||
if (zone.isCharacterInZone(activeChar))
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getZones(activeChar))
|
||||
{
|
||||
if (zone.getName() != null)
|
||||
{
|
||||
@ -151,7 +149,6 @@ public class AdminZone implements IAdminCommandHandler
|
||||
}
|
||||
zones.append(" ");
|
||||
}
|
||||
}
|
||||
for (L2SpawnTerritory territory : ZoneManager.getInstance().getSpawnTerritories(activeChar))
|
||||
{
|
||||
zones.append(territory.getName());
|
||||
|
@ -130,9 +130,7 @@ public class AdminZone implements IAdminCommandHandler
|
||||
adminReply.replace("%SCRIPT%", activeChar.isInsideZone(ZoneId.SCRIPT) ? "<font color=\"LEVEL\">YES</font>" : "NO");
|
||||
|
||||
final StringBuilder zones = new StringBuilder(100);
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getRegion(activeChar).getZones().values())
|
||||
{
|
||||
if (zone.isCharacterInZone(activeChar))
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getZones(activeChar))
|
||||
{
|
||||
if (zone.getName() != null)
|
||||
{
|
||||
@ -151,7 +149,6 @@ public class AdminZone implements IAdminCommandHandler
|
||||
}
|
||||
zones.append(" ");
|
||||
}
|
||||
}
|
||||
for (L2SpawnTerritory territory : ZoneManager.getInstance().getSpawnTerritories(activeChar))
|
||||
{
|
||||
zones.append(territory.getName());
|
||||
|
@ -130,9 +130,7 @@ public class AdminZone implements IAdminCommandHandler
|
||||
adminReply.replace("%SCRIPT%", activeChar.isInsideZone(ZoneId.SCRIPT) ? "<font color=\"LEVEL\">YES</font>" : "NO");
|
||||
|
||||
final StringBuilder zones = new StringBuilder(100);
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getRegion(activeChar).getZones().values())
|
||||
{
|
||||
if (zone.isCharacterInZone(activeChar))
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getZones(activeChar))
|
||||
{
|
||||
if (zone.getName() != null)
|
||||
{
|
||||
@ -151,7 +149,6 @@ public class AdminZone implements IAdminCommandHandler
|
||||
}
|
||||
zones.append(" ");
|
||||
}
|
||||
}
|
||||
for (L2SpawnTerritory territory : ZoneManager.getInstance().getSpawnTerritories(activeChar))
|
||||
{
|
||||
zones.append(territory.getName());
|
||||
|
@ -130,9 +130,7 @@ public class AdminZone implements IAdminCommandHandler
|
||||
adminReply.replace("%SCRIPT%", activeChar.isInsideZone(ZoneId.SCRIPT) ? "<font color=\"LEVEL\">YES</font>" : "NO");
|
||||
|
||||
final StringBuilder zones = new StringBuilder(100);
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getRegion(activeChar).getZones().values())
|
||||
{
|
||||
if (zone.isCharacterInZone(activeChar))
|
||||
for (L2ZoneType zone : ZoneManager.getInstance().getZones(activeChar))
|
||||
{
|
||||
if (zone.getName() != null)
|
||||
{
|
||||
@ -151,7 +149,6 @@ public class AdminZone implements IAdminCommandHandler
|
||||
}
|
||||
zones.append(" ");
|
||||
}
|
||||
}
|
||||
for (L2SpawnTerritory territory : ZoneManager.getInstance().getSpawnTerritories(activeChar))
|
||||
{
|
||||
zones.append(territory.getName());
|
||||
|
Loading…
Reference in New Issue
Block a user