Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 5ea3b45

Browse files
committed
feat(uuid-utils): add UUID#getOfflinePlayer
1 parent ca393e9 commit 5ea3b45

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
}
1313

1414
apply(plugin = "maven-publish")
15-
val versionVar = "0.5.87"
15+
val versionVar = "0.5.88"
1616
val groupIdVar = "com.undefined"
1717
val artifactIdVar = "api"
1818

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.undefined.api.utils
2+
3+
import org.bukkit.Bukkit
4+
import org.bukkit.OfflinePlayer
5+
import java.util.*
6+
7+
fun UUID.getOfflinePlayer(): OfflinePlayer? = Bukkit.getOfflinePlayer(this).takeIf { it.name != null }

0 commit comments

Comments
 (0)