Skip to content

Commit

Permalink
holder
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeschossen committed Mar 9, 2024
1 parent d50b667 commit e1b8ccb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit e1b8ccb

Please sign in to comment.