Skip to content

Commit

Permalink
rename server-name to server-id to make it more understandable
Browse files Browse the repository at this point in the history
  • Loading branch information
luluxe committed Apr 26, 2023
1 parent ca5ceda commit cc9f470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public SpigotConfig loadConfig() {
boolean debug = yamlConfiguration.getBoolean("debug");
int minimumSessionDuration = yamlConfiguration.getInt("minimum-session-duration");
String serverName = yamlConfiguration.getString("server-name");
if(serverName == null) {
serverName = yamlConfiguration.getString("server-id");
}

return new SpigotConfig(platformApiToken, serverName, debug, minimumSessionDuration);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ debug: false
minimum-session-duration: 0

# Server name is used to store player's sessions
server-name: 'skyblock'
server-id: 'skyblock'

0 comments on commit cc9f470

Please sign in to comment.