Plugin Message channal and global chat check

This commit is contained in:
len
2021-05-13 20:27:20 +02:00
parent d087d47d5c
commit 35fda21ed1
15 changed files with 231 additions and 81 deletions
@@ -21,6 +21,9 @@ public class ChatImplementation implements ChatAPI{
public ChatImplementation() {
instance = this;
Config.init();
luckPerms = getLuckPerms();
//databaseConnection = getDataBase();
// init database
// init depends//or set them the first time they are called?
}
@@ -184,4 +184,9 @@ public final class Config {
GACFORMAT = getString("commands.globaladminchat.format", GACFORMAT);
}
public static String MESSAGECHANNEL = "altitude:chatplugin";
private static void messageChannels() {
MESSAGECHANNEL = getString("settings.message-channel", MESSAGECHANNEL);
}
}
@@ -6,6 +6,8 @@ public class ChatPlayer {
// todo merge partyuser here, or make party user extend this?
// todo gctoggle?
// todo cache prefixes?
private UUID uuid;
private UUID replyTarget;
private boolean globalChatEnabled; // this vs permission?