Skip to content

Instantly share code, notes, and snippets.

@konsolas
konsolas / config.yml
Last active July 2, 2021 14:35
AAC5 configuration file
## AAC Configuration File (Generated by AAC ~VERSION)
#
# How AAC works:
# AAC's detection pipeline has three main stages: checks, database, and analysis
# - Checks analyse player behaviour and record any interesting data available.
# Some checks are additionally able to block cheats from being used. This is called mitigation.
# - The database stores a record of aggregate information generated by all enabled checks for every player.
# Old entries are automatically cleared when the server restarts.
# - AAC periodically analyses each player's database entries, generating an overall risk score and a report.
# If the generated risk score is greater than a configured threshold (see `yellow_score`, `red_score`), an alert
#### AAC Config (Generated by AAC ~VERSION)
#
# Hey there,
# Welcome to AAC's configuration file.
# I've commented the entire thing heavily so every option is easy to understand.
# If you want a simple place to start, feel free to check out the "Common changes" section below.
# Feel free to read through the descriptions of checks and options and change them to suit your server.
# I hope that AAC will perform well and live up to your expectations.
# ~ konsolas
#
/**
* Handles changes in player positioning and rotation such as when travelling to a new dimension, (re)spawning,
* mounting horses etc. Seems to immediately reply to the server with the clients post-processing perspective on the
* player positioning
*/
public void handlePlayerPosLook(S08PacketPlayerPosLook packetIn)
{
PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
EntityPlayer entityplayer = this.gameController.thePlayer;
double d0 = packetIn.getX();
#### AAC Config (Generated by AAC ~VERSION)
#
# Hey there,
# Welcome to AAC's configuration file.
# I've commented the entire thing heavily so every option is easy to understand.
# If you want a simple place to start, feel free to check out the "Common changes" section below.
# Feel free to read through the descriptions of checks and options and change them to suit your server.
# I hope that AAC will perform well and live up to your expectations.
# ~ konsolas
#

Keybase proof

I hereby claim:

  • I am konsolas on github.
  • I am konsolas (https://keybase.io/konsolas) on keybase.
  • I have a public key whose fingerprint is 857D 84F3 CE8C F361 B124 9339 857B 866D 5793 69FB

To claim this, I am signing this object:

[Event "soot test 1"]
[Site "?"]
[Date "2016.06.04"]
[Round "1"]
[White "Soot"]
[Black "Chispa 4.0.3"]
[Result "1-0"]
[ECO "A00"]
[TimeControl "m1000"]
@konsolas
konsolas / config.yml
Last active August 13, 2016 01:42
AAC 1.9 pre-release configuration
#### AAC Config
#
# NOTE: Most of the values here have been tried and tested to work.
# It is not recommended that you change them unless you are
# getting false positives.
#
# It would be a good idea to make sure the false positives you're getting aren't actually hackers....
#
#
# The configurable commands will replace "{player}" with the name of the player.
public class AACWrapperAhemReloaded implements Listener {
private final Map<HackType, Set<UUID>> exempt = new HashMap<>();
public AACWrapperAhemReloaded(JavaPlugin plugin) {
plugin.getServer().getPluginManager().registerEvents(this, plugin);
for(HackType hackType : HackType.values()) {
exempt.put(hackType, new HashSet<UUID>());
}
}
public class AACWrapper implements Listener {
private final Set<UUID> exempt = new HashSet<>();
public AACWrapper(JavaPlugin plugin) {
plugin.getServer().getPluginManager().registerEvents(this, plugin);
}
public void exemptPlayer(Player player) {
exempt.add(player.getUniqueId());
}
@konsolas
konsolas / DataTypes.java
Created October 30, 2015 21:27
Data Types
//http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
byte byteMin = -128;
byte byteMax = 127;
short shortMin = -32768;
short shortMax = 32767;
int intMin = -2147483648;
int intMax = 2147483647;