... | ... | @@ -20,7 +20,7 @@ For all IBossBar methods, please check [our Javadoc](https://docs.dbsoftwares.eu |
|
|
api.getUsers().forEach(bossBar::addUser);
|
|
|
```
|
|
|
|
|
|
**IMPORTANT:**
|
|
|
**IMPORTANT:**<br />
|
|
|
If a Bossbar instance is not being used, then **unregister the bossbar**!
|
|
|
The Bossbar API registers a EventExecutor for every BossBar instance, so that on user unload, the user gets removed from the BossBar (to prevent memory leaks).
|
|
|
In order to unregister the eventexecutor, the following code should be executed:
|
... | ... | |