Version 1.0.4 - updated to the latest EaglercraftBungee (0.2.0)

This commit is contained in:
LAX1DUDE 2022-04-08 01:56:03 -07:00
parent 3aa3741fd5
commit d827fbaab5
4 changed files with 103 additions and 98 deletions

Binary file not shown.

View File

@ -338,6 +338,9 @@ public class EaglerMOTD extends Plugin implements Listener {
@EventHandler
public void onMOTD(WebsocketMOTDEvent evt) {
if(!evt.getAccept().equalsIgnoreCase("motd") && !evt.getAccept().equalsIgnoreCase("motd.noicon")) {
return;
}
MOTDConnection con = new MOTDConnection(evt.getListener(), evt.getMOTD());
if(con.execute()) {
if(max_total_sockets > 0) {

View File

@ -235,6 +235,7 @@ public class MOTDConnection {
}
shouldPush = true;
}
if(!this.motd.getAccept().equalsIgnoreCase("motd.noicon")) {
boolean shouldRenderIcon = false;
Object icon = frame.opt("icon");
if(icon != null) {
@ -336,6 +337,7 @@ public class MOTDConnection {
motd.setBitmap(newIcon);
shouldPush = true;
}
}
if(shouldPush) {
motd.sendToUser();
}

View File

@ -1,4 +1,4 @@
name: EaglerMOTD
main: net.lax1dude.eaglercraft.eaglermotd.EaglerMOTD
version: 1.0.3
version: 1.0.4
author: LAX1DUDE