This file contains 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
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); |
This file contains 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.Effect; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.material.MaterialData; |