- 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
+14 -10

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/dynmap-api.jar"/>
<classpathentry kind="lib" path="../lib/HeroicDeath.jar"/> <classpathentry kind="lib" path="../lib/HeroicDeath.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/Towny"/> <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"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
+2
View File
@@ -186,3 +186,5 @@ v0.42:
v0.43: v0.43:
- add a new chatconfig.yml option: - 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, ChatTools.formatTitle("Channels"));
TownyMessaging.sendMsg(sender, Colors.Gold + "Channel" + Colors.Gray + " - " + Colors.LightBlue + "(Status)"); TownyMessaging.sendMsg(sender, Colors.Gold + "Channel" + Colors.Gray + " - " + Colors.LightBlue + "(Status)");
for (Map.Entry<String, Channel> channel : chanList.entrySet()) { for (Map.Entry<String, Channel> channel : chanList.entrySet()) {
if (channel.getValue().isPresent(player.getName())) { if (player.hasPermission(channel.getValue().getPermission()))
TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "In"); if (channel.getValue().isPresent(player.getName())) {
} else { TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "In");
if (!plugin.getTowny().isPermissions() } else {
|| (plugin.getTowny().isPermissions() && ((TownyUniverse.getPermissionSource().has(player, channel.getValue().getPermission())) /*if (!plugin.getTowny().isPermissions()
|| (channel.getValue().getPermission().isEmpty())))) { || ( (plugin.getTowny().isPermissions())
TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "Out"); && (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; return true;
+1 -1
View File
@@ -1,6 +1,6 @@
name: TownyChat name: TownyChat
main: com.palmergames.bukkit.TownyChat.Chat main: com.palmergames.bukkit.TownyChat.Chat
version: 0.43 version: 0.44
author: ElgarL, Shade, phrstbrn author: ElgarL, Shade, phrstbrn
website: http://code.google.com/a/eclipselabs.org/p/towny/ website: http://code.google.com/a/eclipselabs.org/p/towny/
description: > description: >