Fix startup if fastlogin is not present
This commit is contained in:
parent
c1b18455d0
commit
6ab442d681
@ -37,7 +37,9 @@ public class AuthMeVelocityPlugin {
|
||||
new LegacyChannelIdentifier("authmevelocity:main"),
|
||||
MinecraftChannelIdentifier.create("authmevelocity", "main"));
|
||||
proxy.getEventManager().register(this, new ProxyListener(proxy, logger));
|
||||
if(proxy.getPluginManager().getPlugin("fastlogin").isPresent()){
|
||||
proxy.getEventManager().register(this, new FastLoginListener(proxy));
|
||||
}
|
||||
AuthMeConfig.defaultConfig();
|
||||
logger.info("-- AuthMeVelocity enabled --");
|
||||
logger.info("AuthServers: " + config.getList("authservers"));
|
||||
|
@ -5,6 +5,11 @@
|
||||
"url":"https://github.com/4drian3d/AuthMeVelocity",
|
||||
"description":"This plugin adds the support for AuthMeReloaded to Velocity.",
|
||||
"authors":["xQuickGlare"],
|
||||
"dependencies":[],
|
||||
"dependencies":[
|
||||
{
|
||||
"id":"fastlogin",
|
||||
"optional":true
|
||||
}
|
||||
],
|
||||
"main":"com.glyart.authmevelocity.proxy.AuthMeVelocityPlugin"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user