Plugin Message channal and global chat check
This commit is contained in:
1 parent
d087d47d5c
commit
35fda21ed1
15 files changed
+231
-81
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user