Skip to content

Commit

Permalink
redis msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeschossen committed Oct 28, 2024
1 parent d1db3a6 commit b28acba
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 27 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.31"
version = "1.0.32"
description = "PluginFrameworkAPI"
java.sourceCompatibility = JavaVersion.VERSION_1_8

Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
package com.github.angeschossen.pluginframework.api.player;

import com.github.angeschossen.pluginframework.api.configuration.gui.GUIConfiguration;
import com.github.angeschossen.pluginframework.api.configuration.messages.Messages;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Locale;
import java.util.UUID;
public interface PlayerData extends PlayerDataBase {
@NotNull CommandSender getCommandSender();

public interface PlayerData {

Object sendMessage(String msg, String[] p, String[] v);

@NotNull
Messages getMessages();

UUID getUUID();

GUIConfiguration getGUILocale();

GUIConfiguration getBedrockGUILocale();

@NotNull Locale getLocale();
Player getPlayer();
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@

import com.github.angeschossen.pluginframework.api.configuration.gui.GUIConfiguration;
import com.github.angeschossen.pluginframework.api.configuration.messages.Messages;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

import java.util.Locale;
import java.util.UUID;

public interface OnlinePlayerData extends PlayerData {
@NotNull CommandSender getCommandSender();
public interface PlayerDataBase {

Player getPlayer();
Object sendMessage(String msg, String[] p, String[] v);

@NotNull
Messages getMessages();

UUID getUUID();

GUIConfiguration getGUILocale();

GUIConfiguration getBedrockGUILocale();

@NotNull Locale getLocale();
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.angeschossen.pluginframework.api.trusted;

import com.github.angeschossen.pluginframework.api.player.OnlinePlayerData;
import com.github.angeschossen.pluginframework.api.player.PlayerData;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand All @@ -27,7 +27,7 @@ public interface RoleHolder {
@NotNull
String getOwnerName();

void openMenu(@NotNull OnlinePlayerData opener);
void openMenu(@NotNull PlayerData opener);

@NotNull SimpleRole getRole(@NotNull UUID uid);

Expand Down

0 comments on commit b28acba

Please sign in to comment.