reset the thing
This commit is contained in:
parent
7cf994a3eb
commit
fe1b0e12af
1 changed files with 28 additions and 8 deletions
|
@ -124,14 +124,34 @@ public class CorePlugin extends PositionPlugin.Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void forceRun (String command) {
|
private void forceRun (String command) {
|
||||||
|
if (kaboom) {
|
||||||
bot.session.send(new ServerboundSetCommandBlockPacket(
|
bot.session.send(new ServerboundSetCommandBlockPacket(
|
||||||
block,
|
block,
|
||||||
command,
|
command,
|
||||||
kaboom ? CommandBlockMode.AUTO : CommandBlockMode.REDSTONE,
|
CommandBlockMode.AUTO,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
true
|
true
|
||||||
));
|
));
|
||||||
|
} else {
|
||||||
|
bot.session.send(new ServerboundSetCommandBlockPacket(
|
||||||
|
block,
|
||||||
|
"",
|
||||||
|
CommandBlockMode.REDSTONE,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false
|
||||||
|
));
|
||||||
|
|
||||||
|
bot.session.send(new ServerboundSetCommandBlockPacket(
|
||||||
|
block,
|
||||||
|
command,
|
||||||
|
CommandBlockMode.REDSTONE,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
incrementBlock();
|
incrementBlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue