diff --git a/src/main/kotlin/org/hydev/mc/ActiveList.kt b/src/main/kotlin/org/hydev/mc/ActiveList.kt index 37684fc..22e3bdf 100644 --- a/src/main/kotlin/org/hydev/mc/ActiveList.kt +++ b/src/main/kotlin/org/hydev/mc/ActiveList.kt @@ -62,6 +62,7 @@ class ActiveList : JavaPlugin(), CommandExecutor } catch (e: Exception) { e.printStackTrace(); null } } + if (list == null) return "Error: Failed to obtain player info list".red() // Create result val pageMax = ceil(list.size.toDouble() / pageSize).toInt()