feat: submit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package online.mineroo.velocity.listeners;
|
||||
|
||||
import com.google.common.io.ByteArrayDataInput;
|
||||
import com.velocitypowered.api.event.Subscribe;
|
||||
import com.velocitypowered.api.event.connection.PluginMessageEvent;
|
||||
import com.velocitypowered.api.proxy.ServerConnection;
|
||||
|
||||
public class ChannelListener {
|
||||
@Subscribe
|
||||
public void onPluginMessage(PluginMessageEvent event) {
|
||||
if (!event.getIdentifier().getId().equals("mineroo:api"))
|
||||
return;
|
||||
|
||||
if (!(event.getSource() instanceof ServerConnection))
|
||||
return;
|
||||
|
||||
ByteArrayDataInput in = event.dataAsDataStream();
|
||||
String subChannel = in.readUTF();
|
||||
|
||||
// TODO:
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user