diff options
author | Aikar <[email protected]> | 2020-05-02 15:25:55 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2020-05-02 15:29:03 -0400 |
commit | 932e97f345fa539c0a690ff298e61cc13e3071b8 (patch) | |
tree | 3d12a3eaa17fd428d32598246eab976755078753 /Paper-MojangAPI | |
parent | 0dd1907568f6ffc8a8d2637eced972e829e56a7a (diff) | |
download | Paper-932e97f345fa539c0a690ff298e61cc13e3071b8.tar.gz Paper-932e97f345fa539c0a690ff298e61cc13e3071b8.zip |
Rename to AsyncPlayerSendSuggestionsEvent to be consistent in naming
It was still technically read correctly in what it was doing, but
all our Player events begin with Player.
Nothing uses this event yet so safe to rename.
If you are some rapid adopter of this event, sorry :P
Diffstat (limited to 'Paper-MojangAPI')
-rw-r--r-- | Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendSuggestionsEvent.java (renamed from Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncSendPlayerSuggestionsEvent.java) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncSendPlayerSuggestionsEvent.java b/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendSuggestionsEvent.java index dbdb72984b..13819b6185 100644 --- a/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncSendPlayerSuggestionsEvent.java +++ b/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendSuggestionsEvent.java @@ -13,7 +13,7 @@ import org.jetbrains.annotations.NotNull; * Called when sending Suggestions to the client. Will be called asynchronously if a plugin * marks the AsyncTabComplete event handled asynchronously, otherwise called synchronously. */ -public class AsyncSendPlayerSuggestionsEvent extends PlayerEvent implements Cancellable { +public class AsyncPlayerSendSuggestionsEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); private boolean cancelled = false; @@ -21,7 +21,7 @@ public class AsyncSendPlayerSuggestionsEvent extends PlayerEvent implements Canc private Suggestions suggestions; private final String buffer; - public AsyncSendPlayerSuggestionsEvent(Player player, Suggestions suggestions, String buffer) { + public AsyncPlayerSendSuggestionsEvent(Player player, Suggestions suggestions, String buffer) { super(player, !Bukkit.isPrimaryThread()); this.suggestions = suggestions; this.buffer = buffer; |