import sys
from com.l2scoria.gameserver.model.entity import Announcements
from com.l2scoria.gameserver.thread import ThreadPoolManager
from java.lang import Runnable
print "Auto Announce running."
INTERVAL = 5
ANNOUNCE="ваше соопшение на Eng"
class myTask( Runnable ):
def __init__( self ):
self.name = "autoAnnouncer"
def run( self ):
Announcements.getInstance().announceToAll(ANNOUNCE)
startInstance = myTask()
ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(startInstance,INTERVAL*60000,INTERVAL*60000)