<1.0.4> Fixed EaglerMOTD support for EaglerXVelocity
This commit is contained in:
parent
3d76246de9
commit
e58e9bcb5d
Binary file not shown.
|
@ -23,7 +23,7 @@ public class EaglerXVelocityVersion {
|
||||||
public static final String PLUGIN_ID = "eaglerxvelocity";
|
public static final String PLUGIN_ID = "eaglerxvelocity";
|
||||||
public static final String NAME = "EaglercraftXVelocity";
|
public static final String NAME = "EaglercraftXVelocity";
|
||||||
public static final String DESCRIPTION = "Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks";
|
public static final String DESCRIPTION = "Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks";
|
||||||
public static final String VERSION = "1.0.3";
|
public static final String VERSION = "1.0.4";
|
||||||
public static final String[] AUTHORS = new String[] { "lax1dude", "ayunami2000" };
|
public static final String[] AUTHORS = new String[] { "lax1dude", "ayunami2000" };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1233,11 +1233,18 @@ public class HttpWebSocketHandler extends ChannelInboundHandlerAdapter {
|
||||||
EaglerXVelocity.proxy().getEventManager().fire(evt).thenAccept(evt2 -> {
|
EaglerXVelocity.proxy().getEventManager().fire(evt).thenAccept(evt2 -> {
|
||||||
if(!handlerF.isClosed()) {
|
if(!handlerF.isClosed()) {
|
||||||
((MOTDQueryHandler)handlerF).sendToUser();
|
((MOTDQueryHandler)handlerF).sendToUser();
|
||||||
|
if(!handlerF.isClosed() && !handlerF.shouldKeepAlive()) {
|
||||||
|
handlerF.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}).exceptionally((excep) -> {
|
||||||
|
EaglerXVelocity.logger().error("Failed to handle EaglercraftMOTDEvent!", excep);
|
||||||
|
if(!handlerF.isClosed()) {
|
||||||
|
handlerF.close();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
});
|
});
|
||||||
}
|
}else if(!handler.isClosed() && !handler.shouldKeepAlive()) {
|
||||||
if(!handler.isClosed() && !handler.shouldKeepAlive()) {
|
|
||||||
connectionClosed = true;
|
|
||||||
handler.close();
|
handler.close();
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"id":"eaglerxvelocity","name":"EaglercraftXVelocity","version":"1.0.3","description":"Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks","authors":["lax1dude", "ayunami2000"],"dependencies":[],"main":"net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity.EaglerXVelocity"}
|
{"id":"eaglerxvelocity","name":"EaglercraftXVelocity","version":"1.0.4","description":"Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks","authors":["lax1dude", "ayunami2000"],"dependencies":[],"main":"net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity.EaglerXVelocity"}
|
|
@ -1 +1 @@
|
||||||
1.0.3
|
1.0.4
|
Loading…
Reference in New Issue
Block a user