From 323abffb5e8dcca1fc8735fd29483913f0bb050a Mon Sep 17 00:00:00 2001 From: Pepich Date: Sat, 18 Feb 2017 18:41:13 +0100 Subject: [PATCH] Made error messages consistant --- src/com/redstoner/modules/saylol/Saylol.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/com/redstoner/modules/saylol/Saylol.java b/src/com/redstoner/modules/saylol/Saylol.java index 1966e26..0b1e327 100644 --- a/src/com/redstoner/modules/saylol/Saylol.java +++ b/src/com/redstoner/modules/saylol/Saylol.java @@ -15,7 +15,7 @@ import com.redstoner.misc.Main; import com.redstoner.misc.Utils; import com.redstoner.modules.Module; -@Version(major = 1, minor = 0, revision = 5, compatible = 1) +@Version(major = 1, minor = 0, revision = 6, compatible = 1) public class Saylol implements Module { private long lastLol = 0; @@ -172,6 +172,11 @@ public class Saylol implements Module @Command(hook = "listlols") public boolean listLols(CommandSender sender, int page) { + if (lols.size() == 0) + { + Utils.sendErrorMessage(sender, null, "There are no lols yet!"); + return true; + } page = page - 1; int start = page * 10; int end = start + 10;