2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-05-02 11:10:27 +00:00

Merge pull request #48 from Alw3ys/master

Add PlayerProxy for Plugin Messaging
This commit is contained in:
Chnkr
2018-01-24 17:18:25 +01:00
committed by GitHub

View File

@@ -234,6 +234,12 @@ public class RedisBungeeListener implements Listener {
out.writeUTF("Proxy"); out.writeUTF("Proxy");
out.writeUTF(RedisBungee.getConfiguration().getServerId()); out.writeUTF(RedisBungee.getConfiguration().getServerId());
break; 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: default:
return; return;
} }