Skip to content

Instantly share code, notes, and snippets.

View gravitylow's full-sized avatar

Adam Fendley gravitylow

View GitHub Profile
@gravitylow
gravitylow / lang.yml
Created March 1, 2013 22:26
AntiCheat: English Lang.yml
# AntiCheat language file
# Please report any bugs: http://dev.bukkit.org/server-mods/anticheat/
alert:
- '&player has just entered the &level hack level.'
- '&player''s last failed check was: &check.'
- 'Type ''/anticheat report &player'' for more information.'
warning:
player_warning:
- '[AntiCheat] Hacking is not permitted.'
- '[AntiCheat] If you continue to hack, action will be taken.'
import net.minecraft.server.v1_4_R1.CrashReport;
import net.minecraft.server.v1_4_R1.MinecraftServer;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.v1_4_R1.CraftServer;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginLogger;
import org.bukkit.plugin.java.JavaPlugin;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
@gravitylow
gravitylow / BlockLocation
Created May 1, 2013 01:23
BlockLocation barebones
public class BlockLocation {
private double x;
private double y;
private double z;
public BlockLocation(Block block) {
x = block.getLocation().getX();
y = block.getLocation().getY();
z = block.getLocation().getZ();
@gravitylow
gravitylow / things-not-to-do-in-irc
Last active December 18, 2015 22:49
Things not to do in IRC
1) Not use complete sentences.
2) Use the enter button as a period.
3) Use txt spch.
4) Use away messages (especially auto-away).
5) Ping people who don't need your attention.
6) Make 'your mom' jokes.
@gravitylow
gravitylow / enterprise.yml
Last active December 23, 2015 14:08
AntiCheat Enterprise Configuration File
# AntiCheat configuration file
# Please report any bugs: http://dev.bukkit.org/server-mods/anticheat/
# Server-specific settings
server:
# An identifiable name for this server
name: 'server-1'
# Database settings
database:
@gravitylow
gravitylow / gist:8508753
Created January 19, 2014 18:18
AntiCheat 2.0 Changelog
API
- Added Groups instead of levels
Logging
- API logs more info to files
- File and console toggles available via command
- More details when kicking
- More debug information
- Notice permission
Fixes
- Respect potions
@gravitylow
gravitylow / gist:8598419
Created January 24, 2014 14:34
English lang.yml
# AntiCheat language file
# Please report any bugs: https://github.com/gravitylow/AntiCheat/issues
alert:
- '&player has just entered the &group hack group.'
- '&player''s last failed check was: &check.'
- 'Type ''/anticheat report &player'' for more information.'
warning:
player_warning:
- '[AntiCheat] Hacking is not permitted.'
- '[AntiCheat] If you continue to hack, action will be taken.'
// Not production code yet. Still experimental and needs a lot of work.
package net.gravitydevelopment.anticheat.util;
import net.gravitydevelopment.anticheat.AntiCheat;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
@gravitylow
gravitylow / gist:1f60b06236bab3acd8ff
Created July 12, 2014 17:57
ten.java repositories
Gater12-t3
Lolmewn-t2
zeusallmighty11-t1
zeusallmighty11-t3
Assult-t2
MylesIsCool-t2
DevRoMc-t3
ase34-t3
evilmidget38-t3
Ribesg-t2
@gravitylow
gravitylow / tjgource.py
Last active August 29, 2015 14:03
Ten.Java Gource Creator
# I'm not a python developer
import json
import urllib
import urllib2
from subprocess import call
url = "https://tenjava.com/api/participants?repos=1";
devnull = open('/dev/null', 'w')