|
|
|
@ -26,7 +26,7 @@ class BloodMoon : JavaPlugin(), Listener {
|
|
|
|
|
if (Bukkit.getWorlds().first().fullTime - 13000 in 0..20) {
|
|
|
|
|
val chance = Random.nextDouble()
|
|
|
|
|
if (!BMData.running && chance < Config.chance) BMData.begin()
|
|
|
|
|
else Bukkit.getOnlinePlayers().filter { it.hasPermission("bloodmoon.admin") }.forEach {
|
|
|
|
|
else Bukkit.getOnlinePlayers().filter { it.hasPermission("bloodmoon.admin") || it.isOp }.forEach {
|
|
|
|
|
it.msg(
|
|
|
|
|
"&c[!] &7Blood Moon chance did not meet threshold: ${String.format(
|
|
|
|
|
"%.02f",
|
|
|
|
@ -43,7 +43,7 @@ class BloodMoon : JavaPlugin(), Listener {
|
|
|
|
|
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")) {
|
|
|
|
|
if (!sender.hasPermission("bloodmoon.admin") && !sender.isOp) {
|
|
|
|
|
sender.msg("&cNo permission!")
|
|
|
|
|
return@command
|
|
|
|
|
}
|
|
|
|
|