-
-
Notifications
You must be signed in to change notification settings - Fork 931
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
37 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/meteordevelopment/meteorclient/systems/modules/player/BreakDelay.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client). | ||
* Copyright (c) Meteor Development. | ||
*/ | ||
|
||
package meteordevelopment.meteorclient.systems.modules.player; | ||
|
||
import meteordevelopment.meteorclient.events.entity.player.BlockBreakingCooldownEvent; | ||
import meteordevelopment.meteorclient.settings.IntSetting; | ||
import meteordevelopment.meteorclient.settings.Setting; | ||
import meteordevelopment.meteorclient.settings.SettingGroup; | ||
import meteordevelopment.meteorclient.systems.modules.Categories; | ||
import meteordevelopment.meteorclient.systems.modules.Module; | ||
import meteordevelopment.orbit.EventHandler; | ||
|
||
public class BreakDelay extends Module { | ||
SettingGroup sgGeneral = settings.getDefaultGroup(); | ||
|
||
private final Setting<Integer> cooldown = sgGeneral.add(new IntSetting.Builder() | ||
.name("cooldown") | ||
.description("Block break cooldown in ticks.") | ||
.defaultValue(0) | ||
.min(0) | ||
.sliderMax(5) | ||
.build() | ||
); | ||
|
||
public BreakDelay() { | ||
super(Categories.Player, "break-delay", "Changes the delay between breaking blocks."); | ||
} | ||
|
||
@EventHandler | ||
private void onBlockBreakingCooldown(BlockBreakingCooldownEvent event) { | ||
event.cooldown = cooldown.get(); | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
src/main/java/meteordevelopment/meteorclient/systems/modules/player/NoBreakDelay.java
This file was deleted.
Oops, something went wrong.