mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
v0.44:
- add a /ch list command to list what channels a player is currently listening to. Courtesy of Yaiyan.
This commit is contained in:
1 parent
bc7a782d09
commit
9187f15f6a
4 files changed
+10
-6
No files matched your search
+1
-1
@@ -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>
|
||||||
@@ -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,14 +76,16 @@ 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 (player.hasPermission(channel.getValue().getPermission()))
|
||||||
if (channel.getValue().isPresent(player.getName())) {
|
if (channel.getValue().isPresent(player.getName())) {
|
||||||
TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "In");
|
TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "In");
|
||||||
} else {
|
} else {
|
||||||
if (!plugin.getTowny().isPermissions()
|
/*if (!plugin.getTowny().isPermissions()
|
||||||
|| (plugin.getTowny().isPermissions() && ((TownyUniverse.getPermissionSource().has(player, channel.getValue().getPermission()))
|
|| ( (plugin.getTowny().isPermissions())
|
||||||
|| (channel.getValue().getPermission().isEmpty())))) {
|
&& (TownyUniverse.getPermissionSource().has(player, channel.getValue().getPermission()))
|
||||||
|
|| (channel.getValue().getPermission().isEmpty()))) {*/
|
||||||
TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "Out");
|
TownyMessaging.sendMsg(sender, Colors.Gold + channel.getKey() + Colors.Gray + " - " + Colors.LightBlue + "Out");
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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: >
|
||||||
|
|||||||
Reference in new issue
Block a user