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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user