Merge pull request #43 from TownyAdvanced/fix/join_channel_permission_test

Fix permission test used with /channel join {channelname}.
This commit is contained in:
LlmDl authored and GitHub committed 2023-01-11 07:02:25 -06:00
commit 208518d715
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;
}