Thread: EventManager Question

Results 1 to 2 of 2
  1. #1 EventManager Question 
    Registered Member SilentZPrO's Avatar
    Join Date
    Dec 2008
    Posts
    727
    Thanks given
    3
    Thanks received
    4
    Rep Power
    12
    I have this piece of code in login.java

    Code:
    	EventManager.getSingleton().addEvent(new Event() {
    		@Override
    			public void execute(EventContainer event) {
    				blablabla
    			event.stop();
    		}
    	}, 60000);
    But, the problem is is that it only says blablabla once. I want it to loop. So it would say that every minute. How would I do that?

    Reply With Quote  
     

  2. #2  
    Diljot
    Guest
    You called event.stop(), which STOPS the event. Just remove that.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •