Skip to content

Instantly share code, notes, and snippets.

[{"ZOMBIE": "1", "PLAYER": "3", "PIG": "17"}, {"SHEEP": "18", "COW": "10", "PIG": "8", "ZOMBIE": "1", "PLAYER": "3", "STAND": "4", "RABBIT": "8", "CHICKEN": "30"}, {"SHEEP": "18", "HORSE": "1", "SKELETON": "13", "COW": "10", "CREEPER": "14", "SPIDER": "1", "PIG": "8", "ZOMBIE": "17", "PLAYER": "5", "WITCH": "1", "STAND": "4", "RABBIT": "8", "CHICKEN": "30"}, {"SHEEP": "18", "SKELETON": "13", "COW": "10", "CREEPER": "14", "SPIDER": "1", "PIG": "8", "ZOMBIE": "17", "WITCH": "1", "STAND": "4", "RABBIT": "8", "CHICKEN": "30"}, {"SHEEP": "18", "SKELETON": "13", "COW": "10", "CREEPER": "14", "SPIDER": "1", "PIG": "8", "ZOMBIE": "17", "PLAYER": "3", "WITCH": "1", "STAND": "4", "RABBIT": "8", "CHICKEN": "30"}, {"SHEEP": "148", "BAT": "25", "ENDERMAN": "17", "COW": "99", "CREEPER": "629", "SQUID": "43", "SPIDER": "162", "PIG": "238", "ZOMBIE": "612", "PLAYER": "183", "WOLF": "7", "STAND": "4", "RABBIT": "252", "GUARDIAN": "118", "WITCH": "34", "CHICKEN": "235", "SLIME": "4", "SKELETON": "706"}, {"SHEEP": "248", "BAT":
@stevommmm
stevommmm / graph.js
Created October 26, 2015 05:34
basic time series graph
var Graph = function(canvasid, height, width, title, fontsize, maxlabels) {
this.canvas = document.getElementById(canvasid);
this.ctx = this.canvas.getContext("2d");
this.padding = [10, 60, 10, 10];
this.width = width || 1000;
this.height = height || 100;
this.title = title || "Time Series";
this.fontsize = fontsize || 11;
this.maxlabels = maxlabels || null;
this.data = [];
BastilleGiant rEntityBoss = new BastilleGiant(rWorld);
rEntityBoss = rEntityBoss
.ignoreDamageSource(DamageSource.FIRE)
.ignoreDamageSource(DamageSource.LAVA)
.ignoreDamageSource(DamageSource.BURN)
.maxhealth(2000.0D)
.health(2000.0F)
.speed(0.20F)
.damage(4D)
.emtpyGoals()
@EventHandler
public void onChunkUnload(ChunkUnloadEvent event) {
Long begin = System.currentTimeMillis();
List<Entity> entities = Arrays.asList(event.getChunk().getEntities());
for(Entity entity : entities) {
if(entity instanceof Horse) {
Long begin2 = System.currentTimeMillis();
if(utils.isHorseLocked((Horse)entity)) {
LockedHorse lhorse = config.Database.getHorse(((Horse)entity).getUniqueId());
utils.updateHorse(lhorse, (Horse)entity);
@stevommmm
stevommmm / dafaq.java
Created July 10, 2015 09:08
What on earth is this....
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
{
if (args.length == 0)
{
viewStatistics(sender);
if (!sender.hasPermission("megacreeps.help")) {
sender.sendMessage(ChatColor.GRAY + "You dont have permission to see /mc help.");
return true;
}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>us.drome</groupId>
<artifactId>CobraCorral</artifactId>
<version>1.2</version>
<packaging>jar</packaging>
<name>CobraCorral</name>
<description>A Horse locking plugin for Bukkit</description>
<inceptionYear>2014</inceptionYear>
{"Player":"trancetoast","Armor":{"Helmet":"WOOL","Leggings":"None","Boots":"None","Chestplate":"None","Hand":"IRON_SWORD"},"Damage":{"FIRE":2.0,"POISON":7.0,"PROJECTILE":13.0,"FIRE_TICK":14.0},"Killer":"C45Y"}
Item Cost
USA E5-1650 v3 (3-032015) [Secured Servers, 1] 218.00
32 GB ECC DDR4 40.00
240 GB SSD 25.00
2 TB Enterprise Grade SATA II 25.00

Monthly Configuration Total: 308.00

cd C:\Users\c45y\Git\KitchenSink; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_20" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.1\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean install\""
Scanning for projects...
------------------------------------------------------------------------
Building KitchenSink 0.9.1
------------------------------------------------------------------------
Downloading: http://repo.kitteh.org/content/groups/public/de/bananaco/bPermissions/2.10.9d/bPermissions-2.10.9d.pom
Downloaded: http://repo.kitteh.org/content/groups/public/de/bananaco/bPermissions/2.10.9d/bPermissions-2.10.9d.pom (5 KB at 4.1 KB/sec)
Downloading: http://repo.kitteh.org/content/groups/public/de/bananaco/bPermissions/2.10.9d/bPermissions-2.10.9d.jar
Thank you for contacting us concerning this issue. We are aware that at the
moment there are some peering problems in some certain areas in the US.
Please rest assure that this issue is not related to us but rather a problem
with your ISP
We have gotten phone calls and other tickets bringing this to our concern. We
are investigating and monitoring this issue at the moment.
To help us investigate it better, you may provide us a traceroute from your
computer to your server. Also, if possible, a tracerout from your server to
your computer(or the computer that is having trouble connecting). This will
highly be appreciated.