mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-06-24 03:46:43 +00:00
Player/internal tweaks:
- Switch to BungeeCord task scheduler, since it's fixed. - Moved player checks and such to LoginEvent. The login network event is still published from PostLoginEvent. - Fix a typo. Whee.
This commit is contained in:
@@ -35,7 +35,7 @@ import java.util.concurrent.Callable;
|
||||
import java.util.logging.Level;
|
||||
|
||||
@AllArgsConstructor
|
||||
public abstract class RedisCallable<T> implements Callable<T> {
|
||||
public abstract class RedisCallable<T> implements Callable<T>, Runnable {
|
||||
private final RedisBungee plugin;
|
||||
|
||||
@Override
|
||||
@@ -43,6 +43,10 @@ public abstract class RedisCallable<T> implements Callable<T> {
|
||||
return run(false);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
call();
|
||||
}
|
||||
|
||||
private T run(boolean retry) {
|
||||
try (Jedis jedis = plugin.getPool().getResource()) {
|
||||
return call(jedis);
|
||||
|
||||
Reference in New Issue
Block a user