mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-12-23 10:38:01 +00:00
rename internal method
This commit is contained in:
parent
9f05bd3438
commit
2c11cb179a
@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit;
|
||||
*/
|
||||
public interface RedisBungeePlugin<P> extends EventsPlatform{
|
||||
|
||||
default void start() {
|
||||
default void initialize() {
|
||||
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user