mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Async recalc perms and command map
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
From 9ee7fd3e6d4a5bb6f32219311e885342246eb60c Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
||||
Date: Wed, 8 Apr 2020 23:00:31 -0500
|
||||
Subject: [PATCH] Async support for PlayerCommandSendEvent
|
||||
|
||||
---
|
||||
.../java/org/bukkit/event/player/PlayerCommandSendEvent.java | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/event/player/PlayerCommandSendEvent.java b/src/main/java/org/bukkit/event/player/PlayerCommandSendEvent.java
|
||||
index 762825997..749d304d4 100644
|
||||
--- a/src/main/java/org/bukkit/event/player/PlayerCommandSendEvent.java
|
||||
+++ b/src/main/java/org/bukkit/event/player/PlayerCommandSendEvent.java
|
||||
@@ -20,7 +20,7 @@ public class PlayerCommandSendEvent extends PlayerEvent {
|
||||
private final Collection<String> commands;
|
||||
|
||||
public PlayerCommandSendEvent(@NotNull final Player player, @NotNull final Collection<String> commands) {
|
||||
- super(player);
|
||||
+ super(player, !org.bukkit.Bukkit.isPrimaryThread()); // Purpur
|
||||
this.commands = commands;
|
||||
}
|
||||
|
||||
--
|
||||
2.24.0
|
||||
|
||||
Reference in New Issue
Block a user