- Fix double prefix displaying on the message shown when using a
channel command for the channel you're already joined to.
This commit is contained in:
Llm Dl committed 2020-10-19 19:24:30 -05:00
1 parent 4e305f9038
commit 6be15e699c
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId>
<packaging>jar</packaging>
<version>0.80</version>
<version>0.81</version>
<licenses>
<license>
+3 -1
View File
@@ -340,4 +340,6 @@ v0.79:
- Removes double prefixes ie: [Towny] [TownyChat] message....
v0.80:
- Add townychat.chat.format.* childnodes to plugin.yml so players are explicitly not given them.
- Closes https://github.com/TownyAdvanced/Towny/issues/4351
- Closes https://github.com/TownyAdvanced/Towny/issues/4351
v0.81:
- Fix double prefix displaying on the message shown when using a channel command for the channel you're already joined to.
@@ -36,7 +36,7 @@ public class ChannelJoinAliasCommand extends BukkitCommand {
}
if (message.isEmpty()) {
if (plugin.getTowny().hasPlayerMode(player, channel.getName())) {
TownyMessaging.sendErrorMsg(player, String.format(Translation.of("tc_you_are_already_in_channel"), channel.getName()));
TownyMessaging.sendMessage(player, String.format(Translation.of("tc_you_are_already_in_channel"), channel.getName()));
return true;
} else {
// You can join a channel if: