From c963343e270072f5de4c2ef7f1fdfb5106645f55 Mon Sep 17 00:00:00 2001 From: Alexander Staeding Date: Mon, 3 Aug 2020 00:22:36 +0200 Subject: [PATCH] Add dataAsInputStream() to PluginMessageEvent --- .../api/event/connection/PluginMessageEvent.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/src/main/java/com/velocitypowered/api/event/connection/PluginMessageEvent.java b/api/src/main/java/com/velocitypowered/api/event/connection/PluginMessageEvent.java index 1256f7f5b..7f1063b1f 100644 --- a/api/src/main/java/com/velocitypowered/api/event/connection/PluginMessageEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/connection/PluginMessageEvent.java @@ -9,6 +9,7 @@ import com.velocitypowered.api.proxy.ServerConnection; import com.velocitypowered.api.proxy.messages.ChannelIdentifier; import com.velocitypowered.api.proxy.messages.ChannelMessageSink; import com.velocitypowered.api.proxy.messages.ChannelMessageSource; +import java.io.ByteArrayInputStream; import java.util.Arrays; /** @@ -66,6 +67,10 @@ public final class PluginMessageEvent implements ResultedEvent