Tasks of a plugin

Discussion in 'Plugin Development' started by filoghost, Apr 2, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    filoghost

    Hello, I have a plugin for health bars on mobs, and that bar should disappear after 5 seconds. It is better to create a new task for every hit, or to put every mob thread in a hashmap and cancel it on hit? In the first situation a single mob could start a bunch of new tasks, but in the second it should create only 1 task. Am I right?
     
  2. Offline

    Nitnelave

    How do you plan on adding a health bar on mobs? Bukkit can't do that!

    How do you plan on doing that? Bukkit can't do that! It would require a client-side mod.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
Thread Status:
Not open for further replies.

Share This Page