This commit is contained in:
parent
ed5e463141
commit
2d713a68e8
2 changed files with 30 additions and 0 deletions
|
@ -63,6 +63,7 @@ public class Setup {
|
||||||
new InteractionTweaks.FastBreak(),
|
new InteractionTweaks.FastBreak(),
|
||||||
new InteractionTweaks.FastUse(),
|
new InteractionTweaks.FastUse(),
|
||||||
new Inventory(),
|
new Inventory(),
|
||||||
|
new KillBind(),
|
||||||
new MidClick(),
|
new MidClick(),
|
||||||
new Nametags(),
|
new Nametags(),
|
||||||
new NoFall(),
|
new NoFall(),
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue