diff --git a/.classpath b/.classpath
index 5503245..4ae5c40 100644
--- a/.classpath
+++ b/.classpath
@@ -12,6 +12,6 @@
-
+
diff --git a/src/changelog.txt b/src/changelog.txt
index 86cffb7..b2bd082 100644
--- a/src/changelog.txt
+++ b/src/changelog.txt
@@ -185,4 +185,6 @@ v0.42:
- Re-add message for when players chat but no one can hear them. Affects mostly localchat but can also been seen when players are the only one in a channel.
v0.43:
- add a new chatconfig.yml option:
- - modify_chat.alone_message: (default: false) - If true any player who speaks in a channel in which he cannot be heard, either by being along in the channel or out-of-range of another player in his chat channel, that player will see a message saying they cannot be heard.
\ No newline at end of file
+ - modify_chat.alone_message: (default: false) - If true any player who speaks in a channel in which he cannot be heard, either by being along in the channel or out-of-range of another player in his chat channel, that player will see a message saying they cannot be heard.
+v0.44:
+ - add a /ch list command to list what channels a player is currently listening to. Courtesy of Yaiyan.
\ No newline at end of file
diff --git a/src/com/palmergames/bukkit/TownyChat/Command/ChannelCommand.java b/src/com/palmergames/bukkit/TownyChat/Command/ChannelCommand.java
index b2b3a03..4eb0ff6 100644
--- a/src/com/palmergames/bukkit/TownyChat/Command/ChannelCommand.java
+++ b/src/com/palmergames/bukkit/TownyChat/Command/ChannelCommand.java
@@ -76,15 +76,17 @@ public class ChannelCommand implements CommandExecutor {
TownyMessaging.sendMsg(sender, ChatTools.formatTitle("Channels"));
TownyMessaging.sendMsg(sender, Colors.Gold + "Channel" + Colors.Gray + " - " + Colors.LightBlue + "(Status)");
for (Map.Entry channel : chanList.entrySet()) {
- if (channel.getValue().isPresent(player.getName())) {
- TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "In");
- } else {
- if (!plugin.getTowny().isPermissions()
- || (plugin.getTowny().isPermissions() && ((TownyUniverse.getPermissionSource().has(player, channel.getValue().getPermission()))
- || (channel.getValue().getPermission().isEmpty())))) {
- TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "Out");
+ if (player.hasPermission(channel.getValue().getPermission()))
+ if (channel.getValue().isPresent(player.getName())) {
+ TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "In");
+ } else {
+ /*if (!plugin.getTowny().isPermissions()
+ || ( (plugin.getTowny().isPermissions())
+ && (TownyUniverse.getPermissionSource().has(player, channel.getValue().getPermission()))
+ || (channel.getValue().getPermission().isEmpty()))) {*/
+ TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "Out");
+ //}
}
- }
}
return true;
diff --git a/src/plugin.yml b/src/plugin.yml
index d577b10..bf8469d 100644
--- a/src/plugin.yml
+++ b/src/plugin.yml
@@ -1,6 +1,6 @@
name: TownyChat
main: com.palmergames.bukkit.TownyChat.Chat
-version: 0.43
+version: 0.44
author: ElgarL, Shade, phrstbrn
website: http://code.google.com/a/eclipselabs.org/p/towny/
description: >