Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player HP bar duration #19

Closed
AlvinSeville opened this issue May 6, 2020 · 11 comments
Closed

Player HP bar duration #19

AlvinSeville opened this issue May 6, 2020 · 11 comments

Comments

@AlvinSeville
Copy link

AlvinSeville commented May 6, 2020

Hello, i love the plugin, but the problem is a player's HP bar shows only for half a second or even less. The duration of mobs' HP bar is around 5 seconds and that's perfect so it would be cool if the player's HP bar duration was atleast 5 seconds aswell.

@tajobe
Copy link
Member

tajobe commented May 6, 2020

Hey there!

Thanks for giving the plugin a try. The player health bar should be 5 seconds as well, but I'll try to look into why it isn't working right.

What is your player-bar config (in the config.yml)? Also, do you have any other plugins that might be overriding or interfering with the health bar?

@Momonche
Copy link

If it would be possible to add more time to the duration, it would be fine

+1

@tajobe
Copy link
Member

tajobe commented May 10, 2020

The duration of the bar will be configurable in the future but if the bar isn't staying for the 5 seconds its supposed to, increasing it won't change that. There is likely another plugin that is switching the scoreboard out.

@Momonche
Copy link

Yeah I just uninstall ScoreboardStats cause of an incompatibility

Featherboard would be a better option for that issue

@AlvinSeville
Copy link
Author

Yeah, I just found out it was Stats ScoreBoard 3.1.9-Lite that broke it. I didn't know it has something to do with scoreboards. Is there a way to have both your plugin and a plugin for scoreboard on side of the screen?

@Momonche
Copy link

Some scoreboards plugins are compatible with other plugins who use scoreboard system
So just check if your plugin is ok with that or ask to the dev

Or like me, find an other plugin compatible :'(

@tajobe
Copy link
Member

tajobe commented May 10, 2020

@AlvinSeville

Is there a way to have both your plugin and a plugin for scoreboard on side of the screen?

So...kind of. The way it works is that a player can only have a single scoreboard assigned, however a scoreboard can have multiple objectives, each of which can have a different display slot (either BELOW_NAME, PLAYER_LIST, SIDEBAR). There is a single default Main scoreboard that if other plugins are using we can add an objective with the below name display slot and coexist, but if other plugins create their own scoreboard (as SimpleHealthbars2 does currently), they can't be shared. The API leaves a bit to be desired...

What I can do is add a config option for useMainScoreboard (defaulted to true) to increase the chance that we'll work with other plugins, but there's nothing I can reasonably do if they are creating and setting a new one.

Alternatively, you could try the ACTION scoreboard healthbar type if you aren't tied to the scoreboard version.

@tajobe
Copy link
Member

tajobe commented May 10, 2020

@AlvinSeville / @Momonche I've added the option I described above in #20. Once released, it will allow you to use the main scoreboard for the player health but because players use that scoreboard by default, the health will always show (assuming there isn't already an objective in the BELOW_NAME slot). That should mean any other plugins that use the main scoreboard can coexist/render at the same time.

I'll follow up with the ability to configure healthbar duration later.

@Momonche
Copy link

@tajobe Nice ! Thanks !

@tajobe
Copy link
Member

tajobe commented May 17, 2020

Sorry for the delay. I just published version 0.2.0 with the additional useMainScoreboard and healthbar duration options, please give it a try and let me know if that works for you.

I'll close this issue for now but I can reopen if something isn't covered.

edit: Sorry, here's the link: https://github.com/SimpleMC/SimpleHealthbars2/releases/tag/release-0.2.0

@tajobe tajobe closed this as completed May 17, 2020
@Momonche
Copy link

Seems to work, thanks @tajobe !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants