Skip to content

Commit

Permalink
remove legacy event checks
Browse files Browse the repository at this point in the history
  • Loading branch information
derNiklaas committed Jan 2, 2024
1 parent c87274c commit b8ba7a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/de/derniklaas/buildbugs/BugCreator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ object BugCreator {
}

private fun getCopyMessage(area: String, map: String, position: BlockPos, discord: Boolean = false): String {
val start = if (Utils.isOnIsland()) "$area, " else ""
val codeBlock = if (!discord) "" else "``"
return "[$start${if (map != "") map else "$codeBlock${position.x} ${position.y} ${position.z}$codeBlock"}] "
return "[$area, ${if (map != "") map else "$codeBlock${position.x} ${position.y} ${position.z}$codeBlock"}] "
}

/**
Expand Down
5 changes: 1 addition & 4 deletions src/main/kotlin/de/derniklaas/buildbugs/utils/ServerState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ data class ServerState(
* If it's not known, it will return the [type] and [subType]
*/
fun getFancyName() = when (type) {
// ------ MCC Island -------
"lobby" -> "Lobby"
// Game Lobbies
"lobby-game" -> when (subType) {
Expand All @@ -41,9 +40,7 @@ data class ServerState(
"battle-box" -> "Battle Box"
"sky-battle" -> "Sky Battle"

// ------ MCC Event -------
// Event doesn't have types yet, so we ignore it for now
"limbo" -> ""
// TODO: Add event gamemodes

else -> "$type $subType"
}
Expand Down

0 comments on commit b8ba7a0

Please sign in to comment.