@likerino
/// api_version=2
var script = registerScript({
name: "CommandSpammer",
version: "1.0.0",
authors: ["Ali00035"]
});
var LiquidBounce = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
var MSTimer = Java.type("net.ccbluex.liquidbounce.utils.timer.MSTimer");
var Timer = new MSTimer();
script.registerModule({
name: "CommandSpammer",
description: "",
category: "Misc",
settings: {
Integer: Setting.integer({
name: "Delay",
default: 1000,
min: 0,
max: 10000
}),
Text: Setting.text({
name: "Command",
default: "help"
})
}
}, function (module) {
module.on("update", function() {
if (Timer.hasTimePassed(module.settings.Integer.get())) {
LiquidBounce.commandManager.executeCommands(module.settings.Text.get());
Timer.reset();
}
});
});