Timer API

Status
This thread has been locked.

felldownstairs

Gypsy Boy | Java Developer
Supreme
Feedback score
4
Posts
783
Reactions
144
Resources
0
Hello,
For some reason, when I create timers in my plugins they just... don't work. I'm hoping to find a free timer api which I can use for a hcf core. If you have anything please drop it below.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

felldownstairs

Gypsy Boy | Java Developer
Supreme
Feedback score
4
Posts
783
Reactions
144
Resources
0
Store an Integer in a HashMap<UUID, Integer> combat = new HashMap();

timesetter
timegetter
timedecrement
hastime
containsplayer

^^^ Handler

public CombatTask extends BukkitRunnable {

public void run() {
// check if player's time in hashmap != 0
// time - 1
// else (referring to palyer's time = 0)
// remove player from hashmap
// combat tag is over
}

new CombatTask().runTaskAsync(blah, blah, blah);

Maybe
how would i cancel that?
 

FU22Y

scottish developer.
Supreme
Feedback score
32
Posts
935
Reactions
349
Resources
0
Dude, try do it yourself. Do some research, Learn it. Not being mean trying to help.
 
Status
This thread has been locked.
Top