Action bars with no duration

Discussion in 'Plugin Development' started by wydgabriel, May 24, 2016.

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

    wydgabriel

    Hello guys I'm just wondering if have a way to send a permanent action bar with action bar API, or I just need to set the duration to 999999 secs?
    Thanks
     
  2. Yes, you need to send the Action bar again every ~3 seconds.
     
  3. Offline

    mine-care

    Unfortunately the duration of ActionBar can not be altered from the server side yet. However, you may run a repeating task sending the action bar every so often to make it look like it is notbeing removed (Make sure you time it right or otherwise part of the fade out animationw ill be shown that is especially visible with dark backgrounds)

    Good luck :)
     
  4. Offline

    wydgabriel

    The problem is that I need to keep it refreshed every 4 ticks.. no way so? :(
     
  5. Offline

    Zombie_Striker

    @wydgabriel
    I'm assuming you need help refreshing the ActionBar every four ticks. To do this, you would need to use RepeatingTasks. Every 4 ticks, resend the action bar to the player.
     
  6. Offline

    wydgabriel

    No, i'm not having problem with that, I was just wondering if exists a better way to do that.. but thanks!
     
  7. @wydgabriel No there isn't a better way then using RepeatingTasks and sending it every few seconds.
     
Thread Status:
Not open for further replies.

Share This Page