Add support for custom channel aliases and improve string formatting consistency

This commit is contained in:
2025-07-29 19:11:14 +02:00
parent eb30750134
commit 3bfd358e78
3 changed files with 117 additions and 62 deletions
@@ -1,19 +1,27 @@
package com.alttd.chat.objects.channels;
import java.util.*;
import java.util.List;
public class CustomChannel extends Channel {
private final List<String> servers;
private final List<String> aliases;
public CustomChannel(String channelName, String format, List<String> servers, boolean proxy, boolean local) {
public CustomChannel(String channelName, String format, List<String> servers, List<String> aliases, boolean proxy,
boolean local) {
super(channelName, format, proxy, local);
this.permission = "chat.channel." + channelName.toLowerCase();
this.channelName = channelName;
this.format = format;
this.servers = servers;
this.proxy = proxy;
this.aliases = aliases;
}
public List<String> getServers() {
return servers;
}
public List<String> getAliases() {
return aliases;
}
}