forked from RepoMirrors/seppuku
fix spelling mistakes and updates the entire print out of value usage
This commit is contained in:
parent
bc6076a039
commit
70f09d2384
|
@ -91,22 +91,21 @@ public class Module {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final String valuePrefix = " " + ChatFormatting.RESET;
|
||||||
final TextComponentString msg = new TextComponentString("");
|
final TextComponentString msg = new TextComponentString("");
|
||||||
final DecimalFormat df = new DecimalFormat("#.##");
|
final DecimalFormat df = new DecimalFormat("#.##");
|
||||||
|
|
||||||
for (Value v : this.getValueList()) {
|
for (Value v : this.getValueList()) {
|
||||||
final Style style = new Style().setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString(ChatFormatting.GOLD + ((v.getDesc() == null || v.getDesc().equals("")) ? "There is no description for this module" : v.getDesc()) + ChatFormatting.RESET)));
|
|
||||||
|
|
||||||
if (v.getValue() instanceof Boolean) {
|
if (v.getValue() instanceof Boolean) {
|
||||||
msg.appendSibling(new TextComponentString(v.getName() + ChatFormatting.DARK_GRAY + " | " + ((Boolean) v.getValue() ? ChatFormatting.GREEN : ChatFormatting.RED) + v.getValue()).setStyle(style));
|
msg.appendSibling(new TextComponentString(valuePrefix + v.getName() + ": " + ((Boolean) v.getValue() ? ChatFormatting.GREEN : ChatFormatting.RED) + v.getValue()).setStyle(new Style().setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString(v.getName() + "\n" + ChatFormatting.GOLD + ((v.getDesc() == null || v.getDesc().equals("")) ? "There is no description for this boolean value." : v.getDesc()) + ChatFormatting.RESET + "\n " + ChatFormatting.GRAY + "<true / false>")))));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v.getValue() instanceof Number && !(v.getValue() instanceof Enum)) {
|
if (v.getValue() instanceof Number && !(v.getValue() instanceof Enum)) {
|
||||||
msg.appendSibling(new TextComponentString(v.getName() + ChatFormatting.GRAY + " <Amount>" + ChatFormatting.DARK_GRAY + " | " + ChatFormatting.AQUA + (df.format(v.getValue()))).setStyle(style));
|
msg.appendSibling(new TextComponentString(valuePrefix + v.getName() + ChatFormatting.GRAY + " <amount>" + ChatFormatting.RESET + ": " + ChatFormatting.AQUA + (df.format(v.getValue()))).setStyle(new Style().setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString(v.getName() + "\n" + ChatFormatting.GOLD + ((v.getDesc() == null || v.getDesc().equals("")) ? "There is no description for this number value." : v.getDesc()) + ChatFormatting.RESET + "\n " + ChatFormatting.GRAY + "<" + v.getMin() + " - " + v.getMax() + ">")))));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v.getValue() instanceof String) {
|
if (v.getValue() instanceof String) {
|
||||||
msg.appendSibling(new TextComponentString(v.getName() + ChatFormatting.GRAY + " <String>" + ChatFormatting.DARK_GRAY + " | " + ChatFormatting.WHITE + v.getValue()).setStyle(style));
|
msg.appendSibling(new TextComponentString(valuePrefix + v.getName() + ChatFormatting.GRAY + " <text>" + ChatFormatting.RESET + ": " + v.getValue()).setStyle(new Style().setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString(v.getName() + "\n" + ChatFormatting.GOLD + ((v.getDesc() == null || v.getDesc().equals("")) ? "There is no description for this string value." : v.getDesc()) + ChatFormatting.RESET + "\n " + ChatFormatting.GRAY + "<text>")))));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (v.getValue() instanceof Enum) {
|
if (v.getValue() instanceof Enum) {
|
||||||
|
@ -119,7 +118,7 @@ public class Module {
|
||||||
options.append(option.name().toLowerCase() + ((i == size - 1) ? "" : ", "));
|
options.append(option.name().toLowerCase() + ((i == size - 1) ? "" : ", "));
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.appendSibling(new TextComponentString(v.getName() + ChatFormatting.GRAY + " <" + options.toString() + ">" + ChatFormatting.DARK_GRAY + " | " + ChatFormatting.YELLOW + val.name().toLowerCase()).setStyle(style));
|
msg.appendSibling(new TextComponentString(valuePrefix + v.getName() + ChatFormatting.GRAY + " <" + options.toString() + ">" + ChatFormatting.RESET + ": " + ChatFormatting.YELLOW + val.name().toLowerCase()).setStyle(new Style().setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString(v.getName() + "\n" + ChatFormatting.GOLD + ((v.getDesc() == null || v.getDesc().equals("")) ? "There is no description for this enum value." : v.getDesc()) + ChatFormatting.RESET + "\n " + ChatFormatting.GRAY + "<" + options.toString() + ">")))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ public final class KillAuraModule extends Module {
|
||||||
public final Value<Boolean> mobs = new Value("Mobs", new String[]{"Mob"}, "Choose to target mobs.", true);
|
public final Value<Boolean> mobs = new Value("Mobs", new String[]{"Mob"}, "Choose to target mobs.", true);
|
||||||
public final Value<Boolean> animals = new Value("Animals", new String[]{"Animal"}, "Choose to target animals.", true);
|
public final Value<Boolean> animals = new Value("Animals", new String[]{"Animal"}, "Choose to target animals.", true);
|
||||||
public final Value<Boolean> vehicles = new Value("Vehicles", new String[]{"Vehic", "Vehicle"}, "Choose to target vehicles.", true);
|
public final Value<Boolean> vehicles = new Value("Vehicles", new String[]{"Vehic", "Vehicle"}, "Choose to target vehicles.", true);
|
||||||
public final Value<Boolean> projectiles = new Value("Projectile", new String[]{"Proj"}, "Choose to target projectiles", true);
|
public final Value<Boolean> projectiles = new Value("Projectiles", new String[]{"Projectile", "Proj"}, "Choose to target projectiles.", true);
|
||||||
|
|
||||||
public final Value<Float> range = new Value<>("Range", new String[]{"Dist"}, "The minimum range to attack.", 4.5f, 0.0f, 5.0f, 0.1f);
|
public final Value<Float> range = new Value<>("Range", new String[]{"Dist"}, "The minimum range to attack.", 4.5f, 0.0f, 5.0f, 0.1f);
|
||||||
public final Value<Boolean> coolDown = new Value("CoolDown", new String[]{"CoolD"}, "Delay your hits to gain damage.", true);
|
public final Value<Boolean> coolDown = new Value("CoolDown", new String[]{"CoolD"}, "Delay your hits to gain damage.", true);
|
||||||
|
@ -53,7 +53,7 @@ public final class KillAuraModule extends Module {
|
||||||
|
|
||||||
final Entity target = findTarget();
|
final Entity target = findTarget();
|
||||||
|
|
||||||
if(target != null) {
|
if (target != null) {
|
||||||
final float[] angle = MathUtil.calcAngle(mc.player.getPositionEyes(mc.getRenderPartialTicks()), target.getPositionEyes(mc.getRenderPartialTicks()));
|
final float[] angle = MathUtil.calcAngle(mc.player.getPositionEyes(mc.getRenderPartialTicks()), target.getPositionEyes(mc.getRenderPartialTicks()));
|
||||||
Seppuku.INSTANCE.getRotationManager().setPlayerRotations(angle[0], angle[1]);
|
Seppuku.INSTANCE.getRotationManager().setPlayerRotations(angle[0], angle[1]);
|
||||||
|
|
||||||
|
@ -64,12 +64,12 @@ public final class KillAuraModule extends Module {
|
||||||
final ItemStack stack = mc.player.getHeldItem(EnumHand.OFF_HAND);
|
final ItemStack stack = mc.player.getHeldItem(EnumHand.OFF_HAND);
|
||||||
|
|
||||||
//TODO interp
|
//TODO interp
|
||||||
if(this.teleport.getValue()) {
|
if (this.teleport.getValue()) {
|
||||||
Seppuku.INSTANCE.getPositionManager().setPlayerPosition(target.posX, target.posY, target.posZ);
|
Seppuku.INSTANCE.getPositionManager().setPlayerPosition(target.posX, target.posY, target.posZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(canAttack) {
|
if (canAttack) {
|
||||||
if(stack != null && stack.getItem() == Items.SHIELD) {
|
if (stack != null && stack.getItem() == Items.SHIELD) {
|
||||||
mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, mc.player.getHorizontalFacing()));
|
mc.player.connection.sendPacket(new CPacketPlayerDigging(CPacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, mc.player.getHorizontalFacing()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ public final class KillAuraModule extends Module {
|
||||||
if (this.checkFilter(e)) {
|
if (this.checkFilter(e)) {
|
||||||
float currentDist = mc.player.getDistance(e);
|
float currentDist = mc.player.getDistance(e);
|
||||||
|
|
||||||
if(currentDist <= maxDist) {
|
if (currentDist <= maxDist) {
|
||||||
maxDist = currentDist;
|
maxDist = currentDist;
|
||||||
ent = e;
|
ent = e;
|
||||||
}
|
}
|
||||||
|
@ -123,13 +123,13 @@ public final class KillAuraModule extends Module {
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.projectiles.getValue() && (entity instanceof EntityShulkerBullet || entity instanceof EntityFireball)) {
|
if (this.projectiles.getValue() && (entity instanceof EntityShulkerBullet || entity instanceof EntityFireball)) {
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(entity instanceof EntityLivingBase) {
|
if (entity instanceof EntityLivingBase) {
|
||||||
final EntityLivingBase entityLivingBase = (EntityLivingBase) entity;
|
final EntityLivingBase entityLivingBase = (EntityLivingBase) entity;
|
||||||
if(entityLivingBase.getHealth() <= 0) {
|
if (entityLivingBase.getHealth() <= 0) {
|
||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ public final class ElytraFlyModule extends Module {
|
||||||
public final Value<Float> speed = new Value<Float>("Speed", new String[]{"Spd"}, "Speed multiplier for elytra flight, higher values equals more speed.", 1.0f, 0.0f, 5.0f, 0.01f);
|
public final Value<Float> speed = new Value<Float>("Speed", new String[]{"Spd"}, "Speed multiplier for elytra flight, higher values equals more speed.", 1.0f, 0.0f, 5.0f, 0.01f);
|
||||||
|
|
||||||
public final Value<Boolean> autoStart = new Value<Boolean>("AutoStart", new String[]{"AutoStart", "start", "autojump"}, "Hold down the jump key to have an easy automated lift off.", true);
|
public final Value<Boolean> autoStart = new Value<Boolean>("AutoStart", new String[]{"AutoStart", "start", "autojump"}, "Hold down the jump key to have an easy automated lift off.", true);
|
||||||
public final Value<Boolean> disableInLiquid = new Value<Boolean>("DisableInLiquid", new String[]{"DisableInWater", "DisableInLava", "disableliquid", "liquidoff", "noliquid"}, "Disables all elytra flight when the player is in contact wiht liquid.", true);
|
public final Value<Boolean> disableInLiquid = new Value<Boolean>("DisableInLiquid", new String[]{"DisableInWater", "DisableInLava", "disableliquid", "liquidoff", "noliquid"}, "Disables all elytra flight when the player is in contact with liquid.", true);
|
||||||
public final Value<Boolean> infiniteDurability = new Value<Boolean>("InfiniteDurability", new String[]{"InfiniteDura", "dura", "inf", "infdura"}, "Enables an old exploit that sends the start elytra-flying packet each tick.", false);
|
public final Value<Boolean> infiniteDurability = new Value<Boolean>("InfiniteDurability", new String[]{"InfiniteDura", "dura", "inf", "infdura"}, "Enables an old exploit that sends the start elytra-flying packet each tick.", false);
|
||||||
public final Value<Boolean> noKick = new Value<Boolean>("NoKick", new String[]{"AntiKick", "Kick"}, "Bypass the server kicking you for flying while in elytra flight (Only works for Packet mode!).", true);
|
public final Value<Boolean> noKick = new Value<Boolean>("NoKick", new String[]{"AntiKick", "Kick"}, "Bypass the server kicking you for flying while in elytra flight (Only works for Packet mode!).", true);
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ public final class FreeCamModule extends Module {
|
||||||
private float yaw;
|
private float yaw;
|
||||||
private float pitch;
|
private float pitch;
|
||||||
|
|
||||||
public final Value<Float> speed = new Value<Float>("Speed", new String[]{"Spd"}, "Speed of free-cam flight, higher number equals quicker motion.", 1.0f, 0.0f, 10.0f, 0.1f);
|
public final Value<Float> speed = new Value<Float>("Speed", new String[]{"Spd"}, "Speed of freecam flight, higher number equals quicker motion.", 1.0f, 0.0f, 10.0f, 0.1f);
|
||||||
|
|
||||||
public final Value<Boolean> view = new Value<Boolean>("3D", new String[]{"View"}, "The old Nodus client style free-cam, kind of like an elytra. (Hold forward key & move the mouse to turn)", false);
|
public final Value<Boolean> view = new Value<Boolean>("3D", new String[]{"View"}, "The old Nodus client style free-cam, kind of like an elytra. (Hold forward key & move the mouse to turn)", false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue