2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-10 09:00:26 +00:00

add sendProxyCommand methods

This commit is contained in:
vemacs
2014-01-01 17:05:55 -07:00
parent 8b55d8b35b
commit efb707cd94
2 changed files with 26 additions and 0 deletions

View File

@@ -159,6 +159,15 @@ public final class RedisBungee extends Plugin implements Listener {
return ia;
}
final void sendProxyCommand(String proxyId, String command) {
Jedis jedis = pool.getResource();
try {
jedis.publish("redisbungee-" + proxyId, command);
} finally {
pool.returnResource(jedis);
}
}
@Override
public void onEnable() {
plugin = this;