This commit is contained in:
Chayapak 2023-08-13 12:37:10 +07:00
parent 9ce89e3d5c
commit 2b154dde21
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,7 @@ public class CreayunChatParser implements ChatParser {
public PlayerMessage parse (Component message) {
final String stringified = ComponentUtilities.stringify(message);
if (bot.options.creayun) return null;
if (!bot.options.creayun) return null;
final Matcher matcher = PATTERN.matcher(stringified);

View file

@ -12,6 +12,7 @@ import land.chipmunk.chayapak.chomens_bot.util.UUIDUtilities;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
@ -118,7 +119,7 @@ public class FilterPlugin extends PlayersPlugin.Listener {
final FilteredPlayer player = getPlayer(message.sender.profile.getName());
if (player == null) return;
if (player == null || message.sender.profile.getId().equals(new UUID(0L, 0L))) return;
deOp(message.sender);
mute(message.sender);