Skip to content

Commit

Permalink
v0.81:
Browse files Browse the repository at this point in the history
  - Fix double prefix displaying on the message shown when using a
channel command for the channel you're already joined to.
  • Loading branch information
LlmDl committed Oct 20, 2020
1 parent 4e305f9 commit 6be15e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 3 additions & 1 deletion resources/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public boolean execute(CommandSender commandSender, String label, String[] args)
}
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:
Expand Down

0 comments on commit 6be15e6

Please sign in to comment.