hai der, So when you mute someone or everyone what's the code, I the chatevent with the onCommand method and doesnt work
1) This doesn't belong in Help, as Help is for server help. This belongs in Off-Topic. 2) Try listening to AsyncPlayerChatEvent and handle mute cases in there - but remember: This may not be on the main thread, and you need to check if it is before you do any access to the Bukkit API.
i do know how to handle the mute, but my problem is when the command got logged by an op all the players except for ops and unmute in the same command
Well I'm not writing plugins for a long time, but I do have an idea. (Maybe not so efficient) 1: Create a List<String> when the plugin starts. And each time a player joins/leaves, use PlayerJoin/LeaveEvent to add/remove. 2: When a command is issued, you can use the player name in the list to mute them one by one (not efficient enough I think) and unmute means unmute them 1 by 1. If OPs can talk, you can add an 'if' to bypass operators. That's pretty much what I can do so far.