- add a /ch list command to list what channels a player is currently
listening to. Courtesy of Yaiyan.
This commit is contained in:
LlmDl committed 2015-07-02 22:32:00 -05:00
1 parent bc7a782d09
commit 9187f15f6a
4 files changed
+15 -11

No files matched your search

+1 -1
View File
@@ -12,6 +12,6 @@
<classpathentry kind="lib" path="../lib/dynmap-api.jar"/>
<classpathentry kind="lib" path="../lib/HeroicDeath.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/Towny"/>
<classpathentry kind="lib" path="D:/MCSERVER/Bukkit 1.8/Bukkit/target/bukkit-1.8-R0.1-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="C:/Users/Rogan/git/lib/bukkit.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
+3 -1
View File
@@ -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.
- 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.
@@ -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<String, Channel> 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;
+1 -1
View File
@@ -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: >