mirror of
https://github.com/lax1dude/eaglercraft-motd.git
synced 2024-11-09 04:46:04 -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
|
||||
|
||||
### 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;
|
||||
applyFrame(currentMessage.frames.get(currentFrame));
|
||||
motd.sendToUser();
|
||||
return true;
|
||||
if(currentMessage.next == null && currentMessage.interval <= 0) {
|
||||
motd.close();
|
||||
return false;
|
||||
}else {
|
||||
return true;
|
||||
}
|
||||
}else {
|
||||
this.motd.close();
|
||||
return false;
|
||||
|
@ -143,7 +148,12 @@ public class MOTDConnection {
|
|||
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