mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2025-04-20 01:27:07 +00:00
DAE read Effective Java
This commit is contained in:
parent
d6afec5f47
commit
cfd1c20ad7
@ -212,7 +212,7 @@ public final class RedisBungee extends Plugin implements Listener {
|
|||||||
getProxy().getPluginManager().registerListener(this, this);
|
getProxy().getPluginManager().registerListener(this, this);
|
||||||
api = new RedisBungeeAPI(this);
|
api = new RedisBungeeAPI(this);
|
||||||
psl = new PubSubListener();
|
psl = new PubSubListener();
|
||||||
psl.start();
|
new Thread(psl, "RedisBungee PubSub Listener").start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,13 +443,11 @@ public final class RedisBungee extends Plugin implements Listener {
|
|||||||
rsc.hdel("player:" + player, "ip");
|
rsc.hdel("player:" + player, "ip");
|
||||||
}
|
}
|
||||||
|
|
||||||
private class PubSubListener extends Thread {
|
private class PubSubListener implements Runnable {
|
||||||
private Jedis rsc;
|
private Jedis rsc;
|
||||||
private JedisPubSubHandler jpsh;
|
private JedisPubSubHandler jpsh;
|
||||||
|
|
||||||
private PubSubListener() {
|
private PubSubListener() {}
|
||||||
super("RedisBungee PubSub Listener");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user