mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28: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>
|
<groupId>com.palmergames.bukkit</groupId>
|
||||||
<artifactId>TownyChat</artifactId>
|
<artifactId>TownyChat</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>0.111</version>
|
<version>0.112</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import java.util.Collections;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
@@ -194,7 +193,6 @@ public class ChannelsSettings {
|
|||||||
channelMap.put("channelTag", "&f[local]");
|
channelMap.put("channelTag", "&f[local]");
|
||||||
channelMap.put("messagecolour", "&f");
|
channelMap.put("messagecolour", "&f");
|
||||||
channelMap.put("permission", "towny.chat.local");
|
channelMap.put("permission", "towny.chat.local");
|
||||||
channelMap.put("default", "true");
|
|
||||||
channelMap.put("range", "100");
|
channelMap.put("range", "100");
|
||||||
return channelMap;
|
return channelMap;
|
||||||
}
|
}
|
||||||
@@ -220,7 +218,7 @@ public class ChannelsSettings {
|
|||||||
Chat plugin = Chat.getTownyChat();
|
Chat plugin = Chat.getTownyChat();
|
||||||
|
|
||||||
channelsKeys.forEach((channelName)-> {
|
channelsKeys.forEach((channelName)-> {
|
||||||
Channel channel = new StandardChannel(plugin, channelName.toLowerCase(Locale.ROOT));
|
Channel channel = new StandardChannel(plugin, channelName);
|
||||||
loadChannelSettings(channelName, channel);
|
loadChannelSettings(channelName, channel);
|
||||||
plugin.getChannelsHandler().addChannel(channel);
|
plugin.getChannelsHandler().addChannel(channel);
|
||||||
});
|
});
|
||||||
@@ -275,7 +273,7 @@ public class ChannelsSettings {
|
|||||||
*/
|
*/
|
||||||
public ChannelDetails(CommentedConfiguration channelsConfig, String name) {
|
public ChannelDetails(CommentedConfiguration channelsConfig, String name) {
|
||||||
super();
|
super();
|
||||||
this.name = name.toLowerCase(Locale.ROOT);
|
this.name = name;
|
||||||
String path = CHANNELS_ROOT + "." + this.name;
|
String path = CHANNELS_ROOT + "." + this.name;
|
||||||
for (String key : channelsConfig.getConfigurationSection(path).getKeys(true)) {
|
for (String key : channelsConfig.getConfigurationSection(path).getKeys(true)) {
|
||||||
String innerPath = path + "." + key;
|
String innerPath = path + "." + key;
|
||||||
|
|||||||
Reference in new issue
Block a user