Skip to content

Instantly share code, notes, and snippets.

@konsolas
konsolas / config.yml
Last active December 5, 2021 16:04
AAC's current configuration file. This will be kept up to date.
#### 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.
[24-09-2015 11:58:15.173] AAC has been enabled
[24-09-2015 13:15:18.504] jesper1245 failed CombatImpossible: Tried to attack whilst using an item [ping:63 tps:20.0]
[24-09-2015 13:15:18.754] jesper1245 failed CombatImpossible: Tried to attack whilst using an item [ping:63 tps:20.0]
[24-09-2015 13:15:19.104] jesper1245 failed CombatImpossible: Tried to attack whilst using an item [ping:65 tps:20.0]
[24-09-2015 13:15:19.506] jesper1245 failed CombatImpossible: Tried to attack whilst using an item [ping:65 tps:20.0]
[24-09-2015 13:18:08.112] jesper1245 failed Knockback: didn't move away from his attacker when hit [ping:63 tps:19.99]
[24-09-2015 13:18:28.713] Monynoy failed Speed: tried to move too quickly (0.3882784492799803 blocks), f:sneaking [ping:41 tps:20.0]
[24-09-2015 13:19:13.315] Monynoy failed Knockback: didn't move away from his attacker when hit [ping:52 tps:20.0]
[24-09-2015 13:22:13.023] IC3FL4M3 failed Speed: tried to move too quickly (1.6362564312897565 blocks), f: [ping:274 tps:20.0]
[24-09-201
import me.konsolas.stuff.idk.HashMaker;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.util.Map;
import java.util.TreeMap;
public class HardToDebugHashMap {
private Map<String, Object> resultsMap = new TreeMap<>();
@konsolas
konsolas / config-instaban.yml
Created October 21, 2015 16:12
Configuration file for servers that are okay with false negatives, but want instant banning.
#### 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.
@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;
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());
}
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>());
}
}
@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.
[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"]

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: