Created
February 20, 2021 00:43
-
-
Save OxideWaveLength/9fc602391f71c10c614f0728aaee7eed to your computer and use it in GitHub Desktop.
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
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; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please, bare in mind that this piece of code does not contain a package declaration nor imports.