So the best thing what I could do is implementing hyperion's core?
Is it called tickmanager?
Printable View
So the best thing what I could do is implementing hyperion's core?
Is it called tickmanager?
Have fun with your serverQuote:
Originally Posted by Interbellum [Only registered and activated users can see links. Click Here To Register...]
Thank you very much sir ;D
[Only registered and activated users can see links. Click Here To Register...]
Thanks, I used this as more of a suggestion / guide as I use a different event system. But none the less it was helpful. Although as you can see from the above picture you have @override on the stop method. But it's empty so you might as well delete that.. No need to override a method if you are not going to populate it with any content.
unless it's an abstract class (w/ abstract method) or an interfaceQuote:
Originally Posted by sigex [Only registered and activated users can see links. Click Here To Register...]
looks good mate
(didn't read)
This will only activate for 1 player to make it activate, and allow the second player to begin fighting(might be just the way mine was coded)Quote:
Originally Posted by netzo [Only registered and activated users can see links. Click Here To Register...]
switch it to this.
other then that, thanks a lot i've been cleaning up my process from these, and making / modifying my own.Code:CycleEventHandler.getSingleton().addEvent(c, new CycleEvent() {
@Override
public void execute(CycleEventContainer container) {
if(System.currentTimeMillis() - c.duelDelay > 800 && c.duelCount > 0) {
if(c.duelCount != 1) {
c.forcedChat(""+(c.duelCount));
duelWith.forcedChat(""+(c.duelCount));
c.duelCount--;
c.duelDelay = duelWith.duelDelay = System.currentTimeMillis();
} else {
c.damageTaken = duelWith.damageTaken = new int[Config.MAX_PLAYERS];
c.forcedChat("FIGHT!");
duelWith.forcedChat("FIGHT!");
c.duelCount = duelWith.duelCount = 0;
}
}
if (c.duelCount == 0 || duelWith.duelCount == 0) {
container.stop();
}
}
@Override
public void stop() {
}
}, 1);
( I know this is old, I just think all servers should take a look at this )