Fix permission test used with /channel join {channelname}.

This commit is contained in:
LlmDl committed 2023-01-11 07:01:57 -06:00
1 parent 709cad2a11
commit ee63705327
1 file changed
+1 -1
@@ -372,7 +372,7 @@ public class ChannelCommand extends BaseCommand implements CommandExecutor {
// - channel has no permission set OR [by default they don't]
// - channel has permission set AND:
// - player has channel permission
if (chan.hasPermission(player)) {
if (!chan.hasPermission(player)) {
TownyMessaging.sendErrorMsg(player, Translatable.of("tc_err_you_cannot_join_channel", chan.getName()));
return;
}