Allow disabling cross-server broadcasting per-channel (#589)

* Add channel config option to individually disable cross-server

* Block incoming messages when channel cross-server is false
This commit is contained in:
Josua Parks authored and GitHub committed 2025-01-13 02:54:29 -08:00
1 parent 1ed9f4441e
commit 9380c13817
7 files changed
+39

No files matched your search

@@ -63,4 +63,9 @@ abstract class AbstractFactionsChannel extends ConfigChatChannel {
return faction != null && faction.getRelationCount(relation) > 0;
}
@Override
public boolean shouldCrossServer() {
return false;
}
}
@@ -101,4 +101,9 @@ public class McmmoPartyChannel extends ConfigChatChannel {
return PartyManager.getParty(Bukkit.getPlayer(player.uuid()));
}
@Override
public boolean shouldCrossServer() {
return false;
}
}
@@ -91,4 +91,9 @@ abstract class ResidentListChannel<T extends ResidentList> extends ConfigChatCha
protected abstract Component cannotUseChannel(CarbonPlayer player);
@Override
public boolean shouldCrossServer() {
return false;
}
}