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
#!/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
#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
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
#!/usr/bin/python | |
# compatchecker.py | |
# | |
# Scans .jar files passed on command line for compatability with a given | |
# Bukkit or CraftBukkit jar. | |
# | |
# Requires Solum (https://github.com/TkTech/Solum) | |
# sudo pip install git+git://github.com/TkTech/Solum.git | |
import sys, urllib2, re |
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 net.glowstone.net.codec; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.lang.reflect.Constructor; | |
import java.util.logging.Level; | |
import net.glowstone.GlowServer; |
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
echo "[SPOUT] Copying .minecraft/bin" | |
rm -r jars/* | |
cp -r "$APPDATA/.minecraft/bin" jars/ | |
if [ -d Spoutcraft ]; then | |
echo "[SPOUT] Updating Spoutcraft source" | |
cd Spoutcraft | |
git pull | |
cd .. | |
else | |
echo "[SPOUT] Checking out Spoutcraft source" |
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 com.platymuus.bukkit.maptest; | |
import org.bukkit.event.server.MapInitializeEvent; | |
import org.bukkit.event.server.ServerListener; | |
import org.bukkit.map.MapView; | |
/** | |
* A sample ServerListener which broadcasts a message any time a map is initialized. | |
*/ | |
public class MapListener extends ServerListener { |
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
public WorldMap a(ItemStack itemstack, World world) { | |
WorldMap worldmap = (WorldMap) world.a(WorldMap.class, "map_" + itemstack.getData()); | |
if (worldmap == null) { | |
itemstack.b(world.b("map")); | |
String s = "map_" + itemstack.getData(); | |
worldmap = new WorldMap(s); | |
worldmap.b = world.q().c(); |
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 com.platymuus.bukkit.mapapi; | |
import net.minecraft.server.EntityPlayer; | |
import net.minecraft.server.ItemStack; | |
import net.minecraft.server.Item; | |
import net.minecraft.server.Packet; | |
import net.minecraft.server.WorldMap; | |
import net.minecraft.server.Packet131; | |
import org.bukkit.Material; |