baritone module settings

This commit is contained in:
Dewy REDACTED 2020-04-22 14:03:02 +01:00
parent b0291649db
commit a6fcf61a35
No known key found for this signature in database
GPG Key ID: 0CAA84A783228505
1 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,8 @@
package me.zeroeightsix.kami.module.modules.client;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import me.zeroeightsix.kami.util.MessageSendHelper;
@Module.Info(
@ -10,10 +12,24 @@ import me.zeroeightsix.kami.util.MessageSendHelper;
showOnArray = Module.ShowOnArray.OFF
)
public class Baritone extends Module {
public Setting<Boolean> allowBreak = register(Settings.b("Allow Break", true));
public Setting<Boolean> allowSprint = register(Settings.b("Allow Sprint", true));
public Setting<Boolean> allowPlace = register(Settings.b("Allow Place", true));
public Setting<Boolean> allowInventory = register(Settings.b("Allow Inventory", true));
public Setting<Boolean> allowParkour = register(Settings.b("Allow Parkour", true));
public Setting<Boolean> allowParkourPlace = register(Settings.b("Allow Parkour Place", true));
public Setting<Boolean> avoidPortals = register(Settings.b("Avoid Portals", false));
public Setting<Boolean> mapArtMode = register(Settings.b("Map Art Mode", false));
public Setting<Boolean> renderGoal = register(Settings.b("Render Goals", true));
@Override
protected void onDisable() {
MessageSendHelper.sendErrorMessage("Error: The Baritone module is for configuring Baritone integration, not toggling it.");
enable();
}
}