mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-27 13:15:44 +01:00
Don't schedule command list updates if the server is stopping (#2301)
This commit is contained in:
parent
c120fa6a4d
commit
4cbbbd390f
@ -20,7 +20,6 @@ For more information, see the wiki article on [Why LuckPerms?](https://github.co
|
|||||||
|
|
||||||
## Useful Links
|
## Useful Links
|
||||||
The latest downloads & other useful links can be found on the project homepage at [luckperms.net](https://luckperms.net/).
|
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
|
## Building
|
||||||
LuckPerms uses Gradle to handle dependencies & building.
|
LuckPerms uses Gradle to handle dependencies & building.
|
||||||
|
@ -78,6 +78,10 @@ public class BukkitCommandListUpdater {
|
|||||||
|
|
||||||
// Called when the buffer times out.
|
// Called when the buffer times out.
|
||||||
private void sendUpdate(UUID uniqueId) {
|
private void sendUpdate(UUID uniqueId) {
|
||||||
|
if (this.plugin.getBootstrap().isServerStopping()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.plugin.getBootstrap().getScheduler().sync().execute(() -> {
|
this.plugin.getBootstrap().getScheduler().sync().execute(() -> {
|
||||||
Player player = this.plugin.getBootstrap().getPlayer(uniqueId).orElse(null);
|
Player player = this.plugin.getBootstrap().getPlayer(uniqueId).orElse(null);
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user