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

Issue 688 #718

Merged
merged 9 commits into from
Mar 16, 2023
Merged
Prev Previous commit
Next Next commit
should fix #699
andrei1058 committed Mar 11, 2023
commit 8ce841dbf99443477d1e2db8fc559464bea36c7d
Original file line number Diff line number Diff line change
@@ -689,7 +689,9 @@ public String getLine() {
};
}

handle.showPlayersHealth(line, config.getBoolean(ConfigPath.SB_CONFIG_SIDEBAR_HEALTH_IN_TAB));
if (config.getBoolean(ConfigPath.SB_CONFIG_SIDEBAR_HEALTH_IN_TAB)) {
handle.showPlayersHealth(line, false);
}
Bukkit.getScheduler().runTaskLater(plugin, () -> {
if (arena != null && handle != null) {
arena.getPlayers().forEach(player -> handle.setPlayerHealth(player, (int) Math.ceil(player.getHealth())));