add some new modules, kill off alt manager, clean up other code
This commit is contained in:
parent
4b1e0b4fa9
commit
3ad5af7ea7
13 changed files with 120 additions and 95 deletions
|
@ -19,7 +19,9 @@ public class ModuleManager
|
|||
new Fullbright(),
|
||||
new Speed(),
|
||||
new ModulesList(),
|
||||
new TestModule()
|
||||
new ChatSpammer(),
|
||||
new Rotation(),
|
||||
new AutoJump()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
package me.kawaiizenbo.moonlight.module.modules;
|
||||
|
||||
import me.kawaiizenbo.moonlight.module.Category;
|
||||
import me.kawaiizenbo.moonlight.module.Module;
|
||||
import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
|
||||
import me.kawaiizenbo.moonlight.util.Timer;
|
||||
|
||||
public class AutoJump extends Module
|
||||
{
|
||||
public DoubleSetting delay = new DoubleSetting("Delay (Seconds)", 1, 0.1, 10, 1);
|
||||
private Timer timer = new Timer();
|
||||
|
||||
public AutoJump()
|
||||
{
|
||||
super("Auto Jump", "Automatically jumps on a timer.", Category.MOVEMENT);
|
||||
settings.add(delay);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tick()
|
||||
{
|
||||
if (timer.hasTimeElapsed((long)delay.value * 1000, true) && mc.player.isOnGround() && mc.player.hasVehicle() == false)
|
||||
{
|
||||
mc.player.jump();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package me.kawaiizenbo.moonlight.module.modules;
|
||||
|
||||
import me.kawaiizenbo.moonlight.module.Category;
|
||||
import me.kawaiizenbo.moonlight.module.Module;
|
||||
import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
|
||||
import me.kawaiizenbo.moonlight.module.settings.StringSetting;
|
||||
import me.kawaiizenbo.moonlight.util.Timer;
|
||||
|
||||
public class ChatSpammer extends Module
|
||||
{
|
||||
public StringSetting message = new StringSetting("Message", "E4PE4J");
|
||||
public DoubleSetting delay = new DoubleSetting("Delay (Seconds)", 1, 0.1, 10, 1);
|
||||
private Timer timer = new Timer();
|
||||
|
||||
public ChatSpammer()
|
||||
{
|
||||
super("Chat Spammer", "Spams a selected message in chat.", Category.CHAT);
|
||||
settings.add(message);
|
||||
settings.add(delay);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tick()
|
||||
{
|
||||
if (timer.hasTimeElapsed((long)delay.value * 1000, true))
|
||||
{
|
||||
mc.player.networkHandler.sendChatMessage(message.value);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package me.kawaiizenbo.moonlight.module.modules;
|
||||
|
||||
import me.kawaiizenbo.moonlight.module.Category;
|
||||
import me.kawaiizenbo.moonlight.module.Module;
|
||||
import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
|
||||
|
||||
public class Rotation extends Module
|
||||
{
|
||||
DoubleSetting pitch = new DoubleSetting("Pitch", 0, 0, 360, 0);
|
||||
DoubleSetting yaw = new DoubleSetting("Yaw", 0, 0, 360, 0);
|
||||
|
||||
public Rotation()
|
||||
{
|
||||
super("Rotation", "Locks camera to specified pitch and yaw.", Category.PLAYER);
|
||||
settings.add(pitch);
|
||||
settings.add(yaw);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tick()
|
||||
{
|
||||
mc.player.setPitch((float)pitch.value);
|
||||
mc.player.setYaw((float)yaw.value);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue