mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 22:23:18 +00:00
Merge pull request #43 from TownyAdvanced/fix/join_channel_permission_test
Fix permission test used with /channel join {channelname}.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user