23 lines
589 B
Java
23 lines
589 B
Java
package me.rigamortis.seppuku.impl.module.player;
|
|
|
|
import me.rigamortis.seppuku.api.event.player.EventSwingArm;
|
|
import me.rigamortis.seppuku.api.module.Module;
|
|
import team.stiff.pomelo.impl.annotated.handler.annotation.Listener;
|
|
|
|
/**
|
|
* Author Seth
|
|
* 4/20/2019 @ 9:12 AM.
|
|
*/
|
|
public final class NoSwingModule extends Module {
|
|
|
|
public NoSwingModule() {
|
|
super("NoSwing", new String[]{"AntiSwing"}, "Prevents arm swinging server-side", "NONE", -1, ModuleType.PLAYER);
|
|
}
|
|
|
|
@Listener
|
|
public void swingArm(EventSwingArm event) {
|
|
event.setCanceled(true);
|
|
}
|
|
|
|
}
|