Skip to content

Commit 3317de1

Browse files
Merge pull request #12 from theSimpleCloud/develop
feat: add <id> and <unique_id> placeholder in ServerPatternIdentifier
2 parents 245c2a5 + c352aa5 commit 3317de1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin-shared/src/main/kotlin/app/simplecloud/plugin/api/shared/pattern/ServerPatternIdentifier.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class ServerPatternIdentifier(
4242
fun parseServerToPattern(server: Server): String {
4343
return this.pattern
4444
.replace("<group_name>", server.group)
45+
.replace("<id>", server.uniqueId)
46+
.replace("<unique_id>", server.uniqueId)
4547
.replace("<numerical_id>", server.numericalId.toString())
4648
}
4749

0 commit comments

Comments
 (0)