This is the error i get when it runs...
Code:
Server online
[SocketBuilder]: online
Threads currently active: 6
[client-1-Swifty]: Loading Process Completed [Regular player, lag: 2 ms]
Exception in thread "Thread-0" java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:3
72)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at EventManager.run(EventManager.java:80)
at java.lang.Thread.run(Thread.java:619)
and this is the code itself...
Code:
public void autoMessage() {
EventManager.getSingleton().addEvent(
new Event() {
public void execute(EventContainer c) {
PlayerHandler.messageToAll = "Visit our forums at www.blahblah.com!";
// c.stop(); commented out as not needed
}
}, 60000); // executes every 60,000 ms = 60 seconds
};
and i hope im right by putting the void in my client class...