Fixed olympiad announcer when server restarts during competition period.
Contributed by Sahar.
This commit is contained in:
parent
8db02dbcb4
commit
50fb91d327
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -77,7 +70,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.l2jmobius.gameserver.model.olympiad;
|
package org.l2jmobius.gameserver.model.olympiad;
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
import org.l2jmobius.gameserver.datatables.SpawnTable;
|
||||||
import org.l2jmobius.gameserver.enums.ChatType;
|
import org.l2jmobius.gameserver.enums.ChatType;
|
||||||
import org.l2jmobius.gameserver.model.Spawn;
|
import org.l2jmobius.gameserver.model.Spawn;
|
||||||
@ -30,13 +28,8 @@ import org.l2jmobius.gameserver.network.NpcStringId;
|
|||||||
public class OlympiadAnnouncer implements Runnable
|
public class OlympiadAnnouncer implements Runnable
|
||||||
{
|
{
|
||||||
private static final int OLY_MANAGER = 31688;
|
private static final int OLY_MANAGER = 31688;
|
||||||
private final Set<Spawn> _managers;
|
|
||||||
private int _currentStadium = 0;
|
|
||||||
|
|
||||||
public OlympiadAnnouncer()
|
private int _currentStadium = 0;
|
||||||
{
|
|
||||||
_managers = SpawnTable.getInstance().getSpawns(OLY_MANAGER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run()
|
public void run()
|
||||||
@ -72,7 +65,7 @@ public class OlympiadAnnouncer implements Runnable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Spawn spawn : _managers)
|
for (Spawn spawn : SpawnTable.getInstance().getSpawns(OLY_MANAGER))
|
||||||
{
|
{
|
||||||
final Npc manager = spawn.getLastSpawn();
|
final Npc manager = spawn.getLastSpawn();
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user