mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 06:28:58 +00:00
Fix permission test used with /channel join {channelname}.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user