This file contains hidden or 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
package me.hunterboerner.war; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.entity.EntityDamageByEntityEvent; | |
import org.bukkit.entity.Player; | |
import org.bukkit.entity.Entity; | |
public class DamageListener implements Listener { |
This file contains hidden or 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
#include <cstdio> | |
#include <vector> | |
#include <utility> | |
#include <allegro.h> | |
using namespace std; | |
volatile bool close_button_pressed = false; | |
void close_button_callback() { close_button_pressed = true; } | |
volatile int ticks = 0; |
This file contains hidden or 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
#!/usr/bin/python | |
# testjars.py | |
# | |
# Scans .jar files passed on command line for compatability with a given | |
# Bukkit or CraftBukkit jar. | |
# | |
# Requires Solum (https://github.com/TkTech/Solum) | |
import sys, urllib2, re | |
from glob import glob |
This file contains hidden or 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
package me.drayshak.WorldInventories; | |
import java.io.Serializable; | |
/* Trimmed to relevant parts only */ | |
public class WIItemStack implements Serializable { | |
private static final long serialVersionUID = -6239771143618730223L; | |
private int type = 0; | |
private int amount = 0; | |
private WIMaterialData data = null; | |
private short durability = 0; |
This file contains hidden or 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
# utils.py | |
# common utilities for profile master format files | |
from construct import * | |
from PyQt4 import QtCore, QtGui | |
import functools | |
# qt utilities | |
class Dialog(QtGui.QDialog): |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# champs.py | |
from __future__ import print_function | |
import os, os.path | |
import sys | |
import re | |
# log processing |
This file contains hidden or 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
/** | |
* The bit flag indicating a varint continues. | |
*/ | |
public static final byte VARINT_MORE_FLAG = (byte) (1 << 7); | |
/** | |
* Read a protobuf varint from the buffer. | |
* @param buf The buffer. | |
* @return The value read. | |
*/ |
This file contains hidden or 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
"C:\Program Files\Java\jdk1.7.0_25\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:52963,suspend=y,server=n -Dio.netty.leakDetectionLevel=advanced -javaagent:C:\Users\Tad\.IdeaIC13\system\groovyHotSwap\gragent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.7.0_25\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\jfxrt.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.7.0_25\jre\lib\ext\jaccess |
This file contains hidden or 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
package particletest; | |
import org.apache.commons.lang.StringUtils; | |
import org.bukkit.Location; | |
import org.bukkit.Material; | |
import org.bukkit.Particle; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.material.MaterialData; |
This file contains hidden or 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
/** | |
* The client sends this packet for the following cases: | |
* Right click air: | |
* - Send direction=-1 packet for any non-null item | |
* Right click block: | |
* - Send packet with all values filled | |
* - If client DOES NOT expect a block placement to result: | |
* - Send direction=-1 packet (unless item is null) | |
* | |
* Client will expect a block placement to result from blocks and from |