mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-01 14:38:57 +00:00
Fix local channel having default: true, enable upper-case channel names. (#56)
* Fix local channel having default: true, enable upper-case channel names. * remove commented-out code.
This commit is contained in:
1 parent
4524260ce1
commit
5f0ef74b20
2 files changed
+3
-5
No files matched your search
@@ -7,7 +7,7 @@
|
||||
<groupId>com.palmergames.bukkit</groupId>
|
||||
<artifactId>TownyChat</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>0.111</version>
|
||||
<version>0.112</version>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
|
||||
@@ -17,7 +17,6 @@ import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -194,7 +193,6 @@ public class ChannelsSettings {
|
||||
channelMap.put("channelTag", "&f[local]");
|
||||
channelMap.put("messagecolour", "&f");
|
||||
channelMap.put("permission", "towny.chat.local");
|
||||
channelMap.put("default", "true");
|
||||
channelMap.put("range", "100");
|
||||
return channelMap;
|
||||
}
|
||||
@@ -220,7 +218,7 @@ public class ChannelsSettings {
|
||||
Chat plugin = Chat.getTownyChat();
|
||||
|
||||
channelsKeys.forEach((channelName)-> {
|
||||
Channel channel = new StandardChannel(plugin, channelName.toLowerCase(Locale.ROOT));
|
||||
Channel channel = new StandardChannel(plugin, channelName);
|
||||
loadChannelSettings(channelName, channel);
|
||||
plugin.getChannelsHandler().addChannel(channel);
|
||||
});
|
||||
@@ -275,7 +273,7 @@ public class ChannelsSettings {
|
||||
*/
|
||||
public ChannelDetails(CommentedConfiguration channelsConfig, String name) {
|
||||
super();
|
||||
this.name = name.toLowerCase(Locale.ROOT);
|
||||
this.name = name;
|
||||
String path = CHANNELS_ROOT + "." + this.name;
|
||||
for (String key : channelsConfig.getConfigurationSection(path).getKeys(true)) {
|
||||
String innerPath = path + "." + key;
|
||||
|
||||
Reference in new issue
Block a user