Skip to content

Commit 3e8cec2

Browse files
ref: rename thisServer to getCurrentServer in ServerApi
1 parent 6ebee1b commit 3e8cec2

File tree

1 file changed

+2
-2
lines changed
  • controller-api/src/main/kotlin/app/simplecloud/controller/api

1 file changed

+2
-2
lines changed

controller-api/src/main/kotlin/app/simplecloud/controller/api/ServerApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface ServerApi {
2020
/**
2121
* @return a [CompletableFuture] with the [Server] from the SIMPLECLOUD_UNIQUE_ID environment
2222
*/
23-
fun getThisServer(): CompletableFuture<Server> {
23+
fun getCurrentServer(): CompletableFuture<Server> {
2424
return getServerById(System.getenv("SIMPLECLOUD_UNIQUE_ID"))
2525
}
2626

@@ -134,7 +134,7 @@ interface ServerApi {
134134
/**
135135
* @return the [Server] from the SIMPLECLOUD_UNIQUE_ID environment
136136
*/
137-
suspend fun getThisServer(): Server {
137+
suspend fun getCurrentServer(): Server {
138138
return getServerById(System.getenv("SIMPLECLOUD_UNIQUE_ID"))
139139
}
140140

0 commit comments

Comments
 (0)