fix AOOBE with return statement if no arguments provided

master
ALI Hamza 2020-04-01 14:12:54 +07:00
parent 80527c3e40
commit cc9c14329b
No known key found for this signature in database
GPG Key ID: BCA8A46C87798C4C
1 changed files with 2 additions and 2 deletions

@ -40,8 +40,8 @@ class BloodMoon : JavaPlugin(), Listener {
command("bloodmoon") { sender, args -> command("bloodmoon") { sender, args ->
if (args.isEmpty()) if (args.isEmpty())
if (BMData.running) sender.msg("&c&lThe Blood Moon is Active!\n&7${BMData.ticksLeft() / 20} seconds left.") 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.") else sender.msg("&a&lThe Blood Moon is not currently active."))
if (!sender.hasPermission("bloodmoon.admin") && !sender.isOp) { if (!sender.hasPermission("bloodmoon.admin") && !sender.isOp) {
sender.msg("&cNo permission!") sender.msg("&cNo permission!")