diff --git a/README.md b/README.md index 6473551..aa13381 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,8 @@ requires api section to be setup along these lines ``` values you need to remember are obviously the IP, port and token -MatterLInk will need them in the configuration \ No newline at end of file +MatterLInk will need them in the configuration + +## Downloads + +https://ci.elytradev.com/job/elytra/job/MatterLink/job/master/ \ No newline at end of file diff --git a/src/main/kotlin/matterlink/bridge/command/PlayerListCommand.kt b/src/main/kotlin/matterlink/bridge/command/PlayerListCommand.kt index 7a916c4..c96f891 100644 --- a/src/main/kotlin/matterlink/bridge/command/PlayerListCommand.kt +++ b/src/main/kotlin/matterlink/bridge/command/PlayerListCommand.kt @@ -11,10 +11,13 @@ object PlayerListCommand : IBridgeCommand { override val help: String = "Lists online players." override fun call(args: String): Boolean { if (args.isNotBlank()) return false - + val playerList = FMLCommonHandler.instance().minecraftServerInstance.playerList.onlinePlayerNames MessageHandler.transmit(ApiMessage( username = cfg!!.relay.systemUser, - text = MatterLink.wrappedPlayerList().joinToString(" ") { it.antiping() } + text = when { + playerList.isNotEmpty() -> "players: " + playerList.joinToString(" ") { it.antiping() } + else -> "No Players online" + } )) return true