feat: add clear into filter

This commit is contained in:
Chayapak 2025-03-23 15:47:39 +07:00
parent 90a43ad2c0
commit 15c8301f65
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA
2 changed files with 8 additions and 3 deletions
build-number.txt
src/main/java/me/chayapak1/chomens_bot/plugins

View file

@ -1 +1 @@
2111
2113

View file

@ -96,10 +96,11 @@ public class FilterManagerPlugin
public void doAll (PlayerEntry entry) { doAll(entry, ""); }
public void doAll (PlayerEntry entry, String reason) {
bot.exploits.kick(entry.profile.getId());
mute(entry, reason);
deOp(entry);
gameMode(entry);
bot.exploits.kick(entry.profile.getId());
clear(entry);
}
public void mute (PlayerEntry target) { mute(target, ""); }
@ -112,7 +113,11 @@ public class FilterManagerPlugin
}
public void gameMode (PlayerEntry target) {
bot.core.run("minecraft:gamemode adventure " + UUIDUtilities.selector(target.profile.getId()));
bot.core.run("minecraft:gamemode spectator " + UUIDUtilities.selector(target.profile.getId()));
}
public void clear (PlayerEntry target) {
bot.core.run("minecraft:clear " + UUIDUtilities.selector(target.profile.getId()));
}
public void kick () {