add killbind
All checks were successful
/ Build BaseBand (push) Successful in 2m44s

This commit is contained in:
Jess H 2024-10-06 06:52:27 +01:00 committed by TudbuT
parent ed5e463141
commit 2d713a68e8
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 30 additions and 0 deletions

View file

@ -63,6 +63,7 @@ public class Setup {
new InteractionTweaks.FastBreak(),
new InteractionTweaks.FastUse(),
new Inventory(),
new KillBind(),
new MidClick(),
new Nametags(),
new NoFall(),

View file

@ -0,0 +1,29 @@
package de.com.baseband.client.feature.modules.ingame;
import de.com.baseband.client.event.Listen;
import de.com.baseband.client.event.events.PlayerDestroyEvent;
import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Ingame;
import de.com.baseband.client.util.interact.Chat;
@Ingame
public class KillBind extends Feature {
@Override
public String toString() {
return "KillBind";
}
@Override
public void onEnable() {
if(!notIngame()) {
Chat.simulateSend("/kill", false);
}
this.setEnabledSilent(false);
}
@Listen
public void onPlayerDestroy(PlayerDestroyEvent event) {
this.setEnabledSilent(false);
}
}