forked from ChomeNS/chomens-bot-java
dumbass
This commit is contained in:
parent
9ce89e3d5c
commit
2b154dde21
2 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,7 @@ public class CreayunChatParser implements ChatParser {
|
||||||
public PlayerMessage parse (Component message) {
|
public PlayerMessage parse (Component message) {
|
||||||
final String stringified = ComponentUtilities.stringify(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);
|
final Matcher matcher = PATTERN.matcher(stringified);
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ import land.chipmunk.chayapak.chomens_bot.util.UUIDUtilities;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
|
@ -118,7 +119,7 @@ public class FilterPlugin extends PlayersPlugin.Listener {
|
||||||
|
|
||||||
final FilteredPlayer player = getPlayer(message.sender.profile.getName());
|
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);
|
deOp(message.sender);
|
||||||
mute(message.sender);
|
mute(message.sender);
|
||||||
|
|
Loading…
Reference in a new issue