- 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
+4 -2

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId> <groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId> <artifactId>TownyChat</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.80</version> <version>0.81</version>
<licenses> <licenses>
<license> <license>
+2
View File
@@ -341,3 +341,5 @@ v0.79:
v0.80: v0.80:
- Add townychat.chat.format.* childnodes to plugin.yml so players are explicitly not given them. - 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 (message.isEmpty()) {
if (plugin.getTowny().hasPlayerMode(player, channel.getName())) { 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; return true;
} else { } else {
// You can join a channel if: // You can join a channel if: