feat: add clear into filter
This commit is contained in:
parent
90a43ad2c0
commit
15c8301f65
2 changed files with 8 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
2111
|
2113
|
|
@ -96,10 +96,11 @@ public class FilterManagerPlugin
|
||||||
|
|
||||||
public void doAll (PlayerEntry entry) { doAll(entry, ""); }
|
public void doAll (PlayerEntry entry) { doAll(entry, ""); }
|
||||||
public void doAll (PlayerEntry entry, String reason) {
|
public void doAll (PlayerEntry entry, String reason) {
|
||||||
|
bot.exploits.kick(entry.profile.getId());
|
||||||
mute(entry, reason);
|
mute(entry, reason);
|
||||||
deOp(entry);
|
deOp(entry);
|
||||||
gameMode(entry);
|
gameMode(entry);
|
||||||
bot.exploits.kick(entry.profile.getId());
|
clear(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void mute (PlayerEntry target) { mute(target, ""); }
|
public void mute (PlayerEntry target) { mute(target, ""); }
|
||||||
|
@ -112,7 +113,11 @@ public class FilterManagerPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
public void gameMode (PlayerEntry target) {
|
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 () {
|
public void kick () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue