mirror of
https://github.com/lax1dude/eaglercraft-motd.git
synced 2024-09-18 15:06:00 -07:00
Version 1.0.4 - updated to the latest EaglercraftBungee (0.2.0)
This commit is contained in:
parent
3aa3741fd5
commit
d827fbaab5
BIN
EaglerMOTD.jar
BIN
EaglerMOTD.jar
Binary file not shown.
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: EaglerMOTD
|
||||
main: net.lax1dude.eaglercraft.eaglermotd.EaglerMOTD
|
||||
version: 1.0.3
|
||||
version: 1.0.4
|
||||
author: LAX1DUDE
|
Loading…
Reference in New Issue
Block a user