mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-17 11:05:03 +00:00
Don't schedule command list updates if the server is stopping (#2301)
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -20,7 +20,6 @@ For more information, see the wiki article on [Why LuckPerms?](https://github.co
|
||||
|
||||
## Useful Links
|
||||
The latest downloads & other useful links can be found on the project homepage at [luckperms.net](https://luckperms.net/).
|
||||
The latest **downloads** can be found on the [project's homepage](https://luckperms.net/).
|
||||
|
||||
## Building
|
||||
LuckPerms uses Gradle to handle dependencies & building.
|
||||
|
||||
@@ -78,6 +78,10 @@ public class BukkitCommandListUpdater {
|
||||
|
||||
// Called when the buffer times out.
|
||||
private void sendUpdate(UUID uniqueId) {
|
||||
if (this.plugin.getBootstrap().isServerStopping()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.plugin.getBootstrap().getScheduler().sync().execute(() -> {
|
||||
Player player = this.plugin.getBootstrap().getPlayer(uniqueId).orElse(null);
|
||||
if (player != null) {
|
||||
|
||||
Reference in new issue
Block a user