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
@@ -0,0 +1,29 @@
package com.alttd.chat.data;
import com.alttd.chat.config.ServerConfig;
import com.velocitypowered.api.proxy.server.RegisteredServer;
public class ServerWrapper
{
private RegisteredServer registeredServer;
private final boolean globalChat;
public ServerWrapper(RegisteredServer registeredServer, ServerConfig serverConfig)
{
this.registeredServer = registeredServer;
this.globalChat = serverConfig.GLOBALCHAT;
}
public RegisteredServer getRegisteredServer() {
return registeredServer;
}
public boolean globalChat()
{
return globalChat;
}
}