diff --git a/pom.xml b/pom.xml index 83d5958..2f83cb3 100644 --- a/pom.xml +++ b/pom.xml @@ -227,7 +227,7 @@ com.github.Goksi Pterodactyl4J - 3c0200a + 0018d33 \ No newline at end of file diff --git a/src/main/kotlin/tech/goksi/pterobot/entities/ServerInfo.kt b/src/main/kotlin/tech/goksi/pterobot/entities/ServerInfo.kt index 851b843..0a5710c 100644 --- a/src/main/kotlin/tech/goksi/pterobot/entities/ServerInfo.kt +++ b/src/main/kotlin/tech/goksi/pterobot/entities/ServerInfo.kt @@ -16,6 +16,7 @@ data class ServerInfo(private val server: ClientServer) { val name: String = server.name val node: String = server.node val primaryAllocation: String = server.primaryAllocation.fullAddress + val allocationAlias: String = "${server.primaryAllocation.alias ?: server.primaryAllocation.ip}:${server.primaryAllocation.port}" private val utilization = try { server.retrieveUtilization().execute() } catch (exception: Exception) { diff --git a/src/main/resources/embeds/server_info.json b/src/main/resources/embeds/server_info.json index fc956f9..67bd9b5 100644 --- a/src/main/resources/embeds/server_info.json +++ b/src/main/resources/embeds/server_info.json @@ -25,7 +25,7 @@ }, { "name": "Allocation", - "value": "%primaryAllocation", + "value": "%allocationAlias", "inline": false }, {