Skip to content

Instantly share code, notes, and snippets.

@OxideWaveLength
Created February 20, 2021 00:43
Show Gist options
  • Save OxideWaveLength/9fc602391f71c10c614f0728aaee7eed to your computer and use it in GitHub Desktop.
Save OxideWaveLength/9fc602391f71c10c614f0728aaee7eed to your computer and use it in GitHub Desktop.
public class AntiCheatExample extends Module {
public AntiCheatExample() {
super("AntiCheats", "This module demonstrates how to use different anticheats", Keyboard.VK_F, Category.MOVEMENT, AntiCheat.VANILLA, AntiCheat.AAC, AntiCheat.VENOM);
}
@Override
public void onUpdate(UpdateEvent event) {
/* Here you can replace the chat messages with your own code for each different anticheat */
switch(antiCheat) {
default:
case VANILLA: {
Player.sendMessage("You are currently using the Vanilla AntiCheat");
break;
}
case AAC: {
Player.sendMessage("You are currently using the AAC AntiCheat");
break;
}
case VENOM: {
Player.sendMessage("You are currently using the Venom AntiCheat");
break;
}
}
}
}
@OxideWaveLength
Copy link
Author

Please, bare in mind that this piece of code does not contain a package declaration nor imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment