mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Disable messaging service on proxies (#285)
This commit is contained in:
1 parent
b5546e029c
commit
bbb82dec95
1 file changed
+5
-2
@@ -98,9 +98,12 @@ public class MessagingManager {
|
||||
) {
|
||||
this.serverId = serverId;
|
||||
this.logger = logger;
|
||||
if (!configManager.primaryConfig().messagingSettings().enabled()) {
|
||||
if (!((CarbonChatInternal) carbonChat).isProxy()) {
|
||||
final boolean proxy = ((CarbonChatInternal) carbonChat).isProxy();
|
||||
if (proxy || !configManager.primaryConfig().messagingSettings().enabled()) {
|
||||
if (!proxy) {
|
||||
logger.info("Messaging services disabled in config. Cross-server will not work without this!");
|
||||
} else if (configManager.primaryConfig().messagingSettings().enabled()) {
|
||||
logger.warn("Messaging services enabled in config, but messaging is not supported on proxies. The messaging service is used for the configuration where Carbon is installed on all backends instead of the proxy.");
|
||||
}
|
||||
this.messagingService = EMPTY_MESSAGING_SERVICE;
|
||||
this.packetService = null;
|
||||
|
||||
Reference in new issue
Block a user