Skip to content

Instantly share code, notes, and snippets.

View dmulloy2's full-sized avatar

Dan Mulloy dmulloy2

View GitHub Profile
@dmulloy2
dmulloy2 / EnchantHider.java
Last active November 7, 2015 17:31
Code to remove enchantments sent to other clients
/**
* (c) 2015 dmulloy2
*/
package net.dmulloy2.enchanthider;
import java.util.Collections;
import java.util.Set;
import net.dmulloy2.enchanthider.packets.WrapperPlayServerEntityEquipment;
package net.dmulloy2.example;
import static com.comphenix.protocol.PacketType.Play.Server.*;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.Map;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;