Skip to content

Commit

Permalink
Altered message when attempting to message a channel without being a
Browse files Browse the repository at this point in the history
member, by popular request.
  • Loading branch information
redwallhp committed Apr 29, 2017
1 parent 298191e commit a22738f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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>nu.nerd</groupId>
<artifactId>NerdClanChat</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>


<repositories>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/nu/nerd/NerdClanChat/ChatCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ private void setDefaultChannel(CommandSender sender, String channelName) {

if (!members.containsKey(UUID)) {
ChannelMember owner = members.get(channel.getOwner());
sender.sendMessage(ChatColor.RED + String.format("You are not a member of %s. Please speak to %s to join", channelName, owner.getName()));
String subtext = (!channel.isPub()) ? String.format("Please speak to %s to join.", owner.getName()) : String.format("Join with /clanchat join %s", channelName);
sender.sendMessage(ChatColor.RED + String.format("You are not a member of %s. %s", channelName, subtext));
return;
}

Expand Down

0 comments on commit a22738f

Please sign in to comment.