diff --git a/build.gradle.kts b/build.gradle.kts index 834b8b7..2c726df 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,8 +5,8 @@ plugins { `maven-publish` } -version = "1.5.0+1.19" -group = "dev.ashhhleyyy" +version = "1.6.0+1.19" +group = "io.github.ashhhleyyy" repositories { // needed for placeholder-api diff --git a/src/main/java/io/github/ashisbored/playerpronouns/PlayerPronouns.java b/src/main/java/io/github/ashisbored/playerpronouns/PlayerPronouns.java index 1f306db..dfa3f8c 100644 --- a/src/main/java/io/github/ashisbored/playerpronouns/PlayerPronouns.java +++ b/src/main/java/io/github/ashisbored/playerpronouns/PlayerPronouns.java @@ -32,6 +32,7 @@ import java.time.Duration; import java.util.HashMap; import java.util.Map; import java.util.Objects; +import java.util.UUID; public class PlayerPronouns implements ModInitializer { public static final Logger LOGGER = LoggerFactory.getLogger(PlayerPronouns.class); @@ -191,4 +192,13 @@ public class PlayerPronouns implements ModInitializer { return true; } + + public static @Nullable Pronouns getPronouns(ServerPlayerEntity player) { + return getPronouns(player.getUuid()); + } + + public static @Nullable Pronouns getPronouns(UUID playerId) { + if (pronounDatabase == null) return null; + return pronounDatabase.get(playerId); + } }