Skip to content

Instantly share code, notes, and snippets.

@deathcap
deathcap / forge.js
Last active January 18, 2016 23:15 — forked from overjt/forge.js
Server-list-ping feature of Minecraft Forge servers.
var net = require("net");
function makeBuf(server, port) {
var bufSize = 7 + server.length;
var buffer = new Buffer(bufSize);
buffer.writeUInt8(bufSize - 1, 0);
buffer.writeUInt8(0, 1);
buffer.writeUInt8(5, 2);
buffer.writeUInt8(server.length, 3);
package particletest;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Effect;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.material.MaterialData;