Skip to content

Instantly share code, notes, and snippets.

View BlackBeltPanda's full-sized avatar
🏠
Working from home

BlackBeltPanda

🏠
Working from home
View GitHub Profile
@aadnk
aadnk / CancellationDetector.java
Last active March 30, 2024 15:23
A class that allows you to detect which plugin cancelled a given event.
package com.comphenix.example;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.Iterator;
import java.util.List;
import org.bukkit.event.Cancellable;