From 31cec3c99423ae5e0bfcd69a349129531eec8743 Mon Sep 17 00:00:00 2001 From: Alw3ys Date: Sat, 17 Jun 2017 17:08:58 +0200 Subject: [PATCH] Add PlayerProxy for Plugin Messaging --- .../minecraft/redisbungee/RedisBungeeListener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java index 0c3a98c..c99eab5 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeListener.java @@ -234,6 +234,12 @@ public class RedisBungeeListener implements Listener { out.writeUTF("Proxy"); out.writeUTF(RedisBungee.getConfiguration().getServerId()); break; + case "PlayerProxy": + String username = in.readUTF(); + out.writeUTF("PlayerProxy"); + out.writeUTF(username); + out.writeUTF(RedisBungee.getApi().getProxy(plugin.getUuidTranslator().getTranslatedUuid(username, true))); + break; default: return; }