aboutsummaryrefslogtreecommitdiffhomepage
path: root/Paper-MojangAPI
diff options
context:
space:
mode:
authorFrank van der Heijden <[email protected]>2021-07-31 07:59:22 +0200
committerGitHub <[email protected]>2021-07-31 07:59:22 +0200
commit0aa3cc7228cb825df979020a18e957e6c890d648 (patch)
treee1d8b5082e8ba5de1754bc1d9b605e14ab991136 /Paper-MojangAPI
parent7a5025d4617f5946e8ec3af1654d2b22693eab49 (diff)
downloadPaper-0aa3cc7228cb825df979020a18e957e6c890d648.tar.gz
Paper-0aa3cc7228cb825df979020a18e957e6c890d648.zip
Suppress deprecation registration warnings for brigadier events (#6297)
Diffstat (limited to 'Paper-MojangAPI')
-rw-r--r--Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java2
-rw-r--r--Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/CommandRegisteredEvent.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java b/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java
index 6e507c7a51..d767aa23fe 100644
--- a/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java
+++ b/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java
@@ -3,6 +3,7 @@ package com.destroystokyo.paper.event.brigadier;
import com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource;
import com.mojang.brigadier.tree.RootCommandNode;
import org.bukkit.Bukkit;
+import org.bukkit.Warning;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerEvent;
@@ -28,6 +29,7 @@ import org.jetbrains.annotations.NotNull;
* @deprecated Draft API - Subject to change until confirmed solves desired use cases
*/
@Deprecated
+@Warning(false)
public class AsyncPlayerSendCommandsEvent <S extends BukkitBrigadierCommandSource> extends PlayerEvent {
private static final HandlerList handlers = new HandlerList();
diff --git a/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/CommandRegisteredEvent.java b/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/CommandRegisteredEvent.java
index d676a18a66..7bfa71f150 100644
--- a/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/CommandRegisteredEvent.java
+++ b/Paper-MojangAPI/src/main/java/com/destroystokyo/paper/event/brigadier/CommandRegisteredEvent.java
@@ -5,6 +5,7 @@ import com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource;
import com.mojang.brigadier.tree.ArgumentCommandNode;
import com.mojang.brigadier.tree.LiteralCommandNode;
import com.mojang.brigadier.tree.RootCommandNode;
+import org.bukkit.Warning;
import org.bukkit.command.Command;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
@@ -22,6 +23,7 @@ import org.jetbrains.annotations.NotNull;
* @deprecated Draft API - Subject to change until confirmed solves desired use cases
*/
@Deprecated
+@Warning(false)
public class CommandRegisteredEvent <S extends BukkitBrigadierCommandSource> extends ServerEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();