mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Small bug fixes
This commit is contained in:
1 parent
ad496703f7
commit
0db5260cdc
2 files changed
+8
-5
No files matched your search
@@ -153,19 +153,22 @@ public class ChannelManager {
|
|||||||
commandManager.registerCommand(new AliasedChannelCommand(simpleChat, channel));
|
commandManager.registerCommand(new AliasedChannelCommand(simpleChat, channel));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasTownChat) {
|
boolean townyInstalled = Bukkit.getPluginManager().isPluginEnabled("Towny");
|
||||||
|
boolean mcmmoInstalled = Bukkit.getPluginManager().isPluginEnabled("mcMMO");
|
||||||
|
|
||||||
|
if (!hasTownChat && townyInstalled) {
|
||||||
simpleChat.getLogger().info("Towny installed but no Town channel is setup!");
|
simpleChat.getLogger().info("Towny installed but no Town channel is setup!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasNationChat) {
|
if (!hasNationChat && townyInstalled) {
|
||||||
simpleChat.getLogger().info("Towny installed but no Nation channel is setup!");
|
simpleChat.getLogger().info("Towny installed but no Nation channel is setup!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasAllianceChat) {
|
if (!hasAllianceChat && townyInstalled) {
|
||||||
simpleChat.getLogger().info("Towny installed but no Alliance channel is setup!");
|
simpleChat.getLogger().info("Towny installed but no Alliance channel is setup!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hasPartyChat) {
|
if (!hasPartyChat && mcmmoInstalled) {
|
||||||
simpleChat.getLogger().info("mcMMO installed but no Party channel is setup!");
|
simpleChat.getLogger().info("mcMMO installed but no Party channel is setup!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ channels:
|
|||||||
global:
|
global:
|
||||||
name: 'Global'
|
name: 'Global'
|
||||||
aliases: 'global|g'
|
aliases: 'global|g'
|
||||||
id: -1 # Set to -1, comment out, or remove to disable channel bridge
|
id: '' # Set to -1, comment out, or remove to disable channel bridge
|
||||||
webhook: '' # Comment out / remove to disable webhook
|
webhook: '' # Comment out / remove to disable webhook
|
||||||
default: true # Removing this option defaults to 'false'
|
default: true # Removing this option defaults to 'false'
|
||||||
announcements:
|
announcements:
|
||||||
|
|||||||
Reference in new issue
Block a user