Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override def initModule(): Unit = {
- super.initModule()
- getConfiguration.setPropertyIfNew("path.definition", 0.3D)
- getConfiguration.setPropertyIfNew("path.length", 1500)
- getConfiguration.setPropertyIfNew("path.colour", 0x9A5DD4)
- getConfiguration.setPropertyIfNew("path.width", 1.3F)
- getConfiguration.setPropertyIfNew("path.resume", false)
- command = Command(
- Array("bc", "bread"),
- ToggleFlag(Array("@if_none"), this),
- ConfigurationFlag(Array("d", "def"), getConfiguration, "path.definition", ConfigurationFlag.Transforms.DOUBLE),
- ConfigurationFlag(Array("l", "length"), getConfiguration, "path.length", ConfigurationFlag.Transforms.IntBetween(0, Integer.MAX_VALUE / 3)),
- ConfigurationFlag(Array("c", "colour"), getConfiguration, "path.colour", ConfigurationFlag.Transforms.INT),
- ConfigurationFlag(Array("w", "width"), getConfiguration, "path.width", ConfigurationFlag.Transforms.FLOAT),
- ConfigurationFlag(Array("r", "resume"), getConfiguration, "path.resume", ConfigurationFlag.Transforms.BOOLEAN),
- Flag(
- Array("cl", "clear"), { args => lineBuffer.clear(); tellPlayer("Line buffer cleared") },
- null, "Clear the line buffer"
- ),
- Flag(
- Array("p", "pause"), { args => isPaused = !isPaused; tellPlayer("Pathing " + (if (isPaused) "paused" else "un-paused")) },
- null, "Pause pathing"
- )
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement