Skip to content

Commit

Permalink
re-add game lobbies
Browse files Browse the repository at this point in the history
  • Loading branch information
derNiklaas committed Aug 25, 2024
1 parent ff603be commit d90e782
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yarn_mappings=1.21+build.9
loader_version=0.15.11
fabric_kotlin_version=1.11.0+kotlin.2.0.0
fabric_api_version=0.100.7+1.21
mod_version=1.12.0
mod_version=1.12.1
noxesium_version=2.1.0
adventure_version=5.14.0
cloud_version=2.0.0-beta.7
Expand Down
8 changes: 6 additions & 2 deletions src/main/kotlin/de/derniklaas/buildbugs/utils/ServerState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ data class ServerState(
* If it's not known, it will return the [type] and [subType]
*/
fun getFancyName(type: String = this.serverType): String = when (type) {
Constants.LOBBY -> "Lobby"
Constants.LOBBY -> {
if (subType == "main") "Main Lobby"
else if (type == subType) "Lobby Lobby?"
else "${getFancyName(subType)} Lobby"
}

// Game modes
Constants.PARKOUR_WARRIOR -> "Parkour Warrior"
Expand All @@ -34,7 +38,7 @@ data class ServerState(
Constants.DYNABALL -> "Dynaball"
Constants.ROCKET_SPLEEF_RUSH -> "Rocket Spleef"

// Event gametypes
// Event game types
Constants.HUB -> "Hub"
Constants.ACE_RACE -> "Ace Race"
Constants.PARKOUR_TAG -> "Parkour Tag"
Expand Down

0 comments on commit d90e782

Please sign in to comment.