mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Reduce ChatChannel redundancy
This commit is contained in:
1 parent
c62f5d0641
commit
707556d9f9
6 files changed
+29
-765
No files matched your search
@@ -92,16 +92,16 @@ public final class SimpleChat extends JavaPlugin {
|
||||
ConfigurationSection section = getConfig().getConfigurationSection("channels").getConfigurationSection(key);
|
||||
|
||||
if (section.contains("is-town-chat")) {
|
||||
builder = TownChatChannel.builder(key);
|
||||
builder = TownChatChannel.townBuilder(key);
|
||||
hasTownChat = true;
|
||||
} else if (section.contains("is-nation-chat")) {
|
||||
builder = NationChatChannel.builder(key);
|
||||
builder = NationChatChannel.nationBuilder(key);
|
||||
hasNationChat = true;
|
||||
} else if (section.contains("is-alliance-chat")) {
|
||||
builder = AllianceChatChannel.builder(key);
|
||||
builder = AllianceChatChannel.allianceBuilder(key);
|
||||
hasAllianceChat = true;
|
||||
} else if (section.contains("is-party-chat")) {
|
||||
builder = PartyChatChannel.builder(key);
|
||||
builder = PartyChatChannel.partyBuilder(key);
|
||||
hasPartyChat = true;
|
||||
} else {
|
||||
builder = SimpleChatChannel.builder(key);
|
||||
|
||||
Reference in new issue
Block a user