mirror of
https://github.com/lax1dude/eaglercraft-motd.git
synced 2024-11-09 12:56:05 -08:00
Fixed memory leak
This commit is contained in:
parent
cfa513a4f8
commit
1fd47f074e
BIN
EaglerMOTD.jar
BIN
EaglerMOTD.jar
Binary file not shown.
|
@ -1,3 +1,5 @@
|
||||||
|
### THIS IS A BUNGEE PLUGIN! Install in 'bungee_command/plugins' not 'bukkit_command/plugins'
|
||||||
|
|
||||||
# EaglerMOTD
|
# EaglerMOTD
|
||||||
|
|
||||||
### This plugin can add animated MOTDs to your Eaglercraft server
|
### This plugin can add animated MOTDs to your Eaglercraft server
|
||||||
|
|
|
@ -117,7 +117,12 @@ public class MOTDConnection {
|
||||||
currentFrame = currentMessage.random ? rand.nextInt(currentMessage.frames.size()) : 0;
|
currentFrame = currentMessage.random ? rand.nextInt(currentMessage.frames.size()) : 0;
|
||||||
applyFrame(currentMessage.frames.get(currentFrame));
|
applyFrame(currentMessage.frames.get(currentFrame));
|
||||||
motd.sendToUser();
|
motd.sendToUser();
|
||||||
return true;
|
if(currentMessage.next == null && currentMessage.interval <= 0) {
|
||||||
|
motd.close();
|
||||||
|
return false;
|
||||||
|
}else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
this.motd.close();
|
this.motd.close();
|
||||||
return false;
|
return false;
|
||||||
|
@ -143,7 +148,12 @@ public class MOTDConnection {
|
||||||
motd.sendToUser();
|
motd.sendToUser();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
if(currentMessage.next == null && currentMessage.interval <= 0) {
|
||||||
|
motd.close();
|
||||||
|
return false;
|
||||||
|
}else {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user