diff --git a/src/main/kotlin/pw/hamzantal/bloodmoon/BloodMoon.kt b/src/main/kotlin/pw/hamzantal/bloodmoon/BloodMoon.kt index 6d7812a..ae14121 100644 --- a/src/main/kotlin/pw/hamzantal/bloodmoon/BloodMoon.kt +++ b/src/main/kotlin/pw/hamzantal/bloodmoon/BloodMoon.kt @@ -40,8 +40,8 @@ class BloodMoon : JavaPlugin(), Listener { command("bloodmoon") { sender, args -> if (args.isEmpty()) - if (BMData.running) sender.msg("&c&lThe Blood Moon is Active!\n&7${BMData.ticksLeft() / 20} seconds left.") - else sender.msg("&a&lThe Blood Moon is not currently active.") + return@command (if (BMData.running) sender.msg("&c&lThe Blood Moon is Active!\n&7${BMData.ticksLeft() / 20} seconds left.") + else sender.msg("&a&lThe Blood Moon is not currently active.")) if (!sender.hasPermission("bloodmoon.admin") && !sender.isOp) { sender.msg("&cNo permission!")