Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block AdamQpzm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AdamQpzm / gist:8b99bf238ac36498523c
Created Nov 3, 2014
No main manifest attribute?!
View gist:8b99bf238ac36498523c
package net.adamqpzm.steadfast;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
public class Steadfast extends JavaPlugin implements Listener {
View gist:dfb6561e7c5ae062a01c
# Copyright (c) 1993-2009 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
AdamQpzm / Ambiguous health
Last active Aug 29, 2015
What is this getHealth() madness?!
View Ambiguous health
AdamQpzm / 1.8 UUID
Last active Aug 29, 2015
Guys! Did you know getPlayer() and getPlayerExact() has been deprecated?! :O
View 1.8 UUID
View gist:c679a750a913b4d10ca5
public static ItemStack createItemStack(Material type, int amount, byte data, String name, String... lore) {
if(type == null)
return null;
ItemStack is = new ItemStack(type, amount, data);
ItemMeta meta = is.getItemMeta();
if(lore != null && lore.length > 0)
if(name != null && !name.isEmpty())
You can’t perform that action at this time.