mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
* Fixes #1794
This commit is contained in:
parent
fb5ebdb0c2
commit
e4a8222d48
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ public class EssentialsPlayerListener implements Listener {
|
||||||
|
|
||||||
final IText input = tempInput;
|
final IText input = tempInput;
|
||||||
|
|
||||||
if (input != null && user.isAuthorized("essentials.motd")) {
|
if (input != null && !input.getLines().isEmpty() && user.isAuthorized("essentials.motd")) {
|
||||||
final IText output = new KeywordReplacer(input, user.getSource(), ess);
|
final IText output = new KeywordReplacer(input, user.getSource(), ess);
|
||||||
final TextPager pager = new TextPager(output, true);
|
final TextPager pager = new TextPager(output, true);
|
||||||
pager.showPage("1", null, "motd", user.getSource());
|
pager.showPage("1", null, "motd", user.getSource());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue