Skip to content

Instantly share code, notes, and snippets.

View AaronMcHale's full-sized avatar

Aaron McHale AaronMcHale

View GitHub Profile
@DarkSeraphim
DarkSeraphim / InventoryUtil.java
Last active July 12, 2016 23:46
Utility to rename custom Bukkit inventories without opening a new inventory (only works with Inventories created by Bukkit.createInventory!)
package net.darkseraphim.utils;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;