2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-22 20:28:00 +00:00

rename internal method

This commit is contained in:
mohammed jasem alaajel 2022-07-08 03:23:44 +04:00
parent 9f05bd3438
commit 2c11cb179a
3 changed files with 6 additions and 5 deletions

View File

@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit;
*/
public interface RedisBungeePlugin<P> extends EventsPlatform{
default void start() {
default void initialize() {
}

View File

@ -330,7 +330,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
@Override
public void start() {
public void initialize() {
ThreadFactory factory = ((ThreadPoolExecutor) getExecutorService()).getThreadFactory();
ScheduledExecutorService service = Executors.newScheduledThreadPool(24, factory);
try {
@ -609,7 +609,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
@Override
public void onEnable() {
start();
initialize();
}
@Override

View File

@ -83,6 +83,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
this.server = server;
this.logger = logger;
this.dataFolder = dataDirectory.toFile();
}
@ -347,7 +348,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
@Override
public void start() {
public void initialize() {
try {
loadConfig();
} catch (IOException e) {
@ -625,7 +626,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
@Subscribe
public void proxyInit(ProxyInitializeEvent event) {
start();
initialize();
}
@Subscribe