}
Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers();
{
int xx, yy, zz;
L2TownZone Town;
byte zonaPaz = 1;
for (L2PcInstance onlinePlayer : pls) {
if (onlinePlayer.isOnline() == 1) {
xx = onlinePlayer.getX();
yy = onlinePlayer.getY();
zz = onlinePlayer.getZ();
Town = TownManager.getInstance().getTown(xx, yy, zz);
if (Town != null) {
if (Town.getTownId() == Config.TW_TOWN_ID && !Config.TW_ALL_TOWNS) {
onlinePlayer.setInsideZone(zonaPaz, true);
onlinePlayer.revalidateZone(true);
} else if (Config.TW_ALL_TOWNS) {
onlinePlayer.setInsideZone(zonaPaz, true);
onlinePlayer.revalidateZone(true);