From e1b8ccba20a3400afa44fe0245f77563037402a4 Mon Sep 17 00:00:00 2001 From: Angeschossen <24841122+Angeschossen@users.noreply.github.com> Date: Sat, 9 Mar 2024 14:17:43 +0100 Subject: [PATCH] holder --- build.gradle.kts | 2 +- .../pluginframework/api/trusted/RoleHolder.java | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index da0d1b9..ef3b4c5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -41,7 +41,7 @@ java { } group = "com.github.angeschossen" -version = "1.0.14" +version = "1.0.15" description = "PluginFrameworkAPI" java.sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/src/main/java/com/github/angeschossen/pluginframework/api/trusted/RoleHolder.java b/src/main/java/com/github/angeschossen/pluginframework/api/trusted/RoleHolder.java index 50aa217..b520b97 100644 --- a/src/main/java/com/github/angeschossen/pluginframework/api/trusted/RoleHolder.java +++ b/src/main/java/com/github/angeschossen/pluginframework/api/trusted/RoleHolder.java @@ -2,6 +2,7 @@ import com.github.angeschossen.pluginframework.api.player.PlayerData; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import java.util.Collection; import java.util.UUID; @@ -15,6 +16,15 @@ public interface RoleHolder { void setOwner(UUID uid); + @Nullable + String getName(); + + @NotNull + String getDisplayName(); + + void setName(@Nullable String name); + + @NotNull String getOwnerName(); void openMenu(@NotNull PlayerData opener); @@ -25,7 +35,7 @@ public interface RoleHolder { boolean isTrusted(@NotNull UUID uid); - void setRole(@NotNull UUID uid, @NotNull SimpleRole role)throws IllegalArgumentException; + void setRole(@NotNull UUID uid, @NotNull SimpleRole role) throws IllegalArgumentException; boolean trustPlayer(@NotNull UUID uid);