EndstoneMC / endstone

Endstone - High-level Plugin API for Modding Bedrock Dedicated Servers (BDS), in both Python and C++.
http://endstone.dev/
Apache License 2.0
249 stars 22 forks source link

[bug] When I create a boss bar and set it up through add_player, the boss bar is seen for 0.1 seconds and then disappears. #76

Open pgrd1 opened 1 week ago

pgrd1 commented 1 week ago

Describe the bug When I create a boss bar and set it up through add_player, the boss bar is seen for 0.1 seconds and then disappears.

To Reproduce When I make a boss bar through create_boss_bar and add_player, the boss bar is seen for a moment and then disappears

Expected behavior I thought I'd see boss bar all the time

Screenshots If applicable, add screenshots to help explain your problem.

Details (please complete the following information): Windows 0.5.4.2.dev2

Additional context Add any other context about the problem here.

wu-vincent commented 1 week ago

Thank you for reaching out. Could you provide a Minimal Working Example that can reproduce the issue?

pgrd1 commented 1 week ago

It's the fastest code to see.
@event_handler def on_block_interact(self, event: PlayerInteractEvent):
boss_test = self._plugin.server.create_boss_bar("test_bossbar",boss.BarColor.BLUE, boss.BarStyle.SOLID) boss_test.visible = True boss_test.add_player(event.player)

wu-vincent commented 1 week ago

I can't reproduce it myself. The boss bar appears to stay with the exact same code.