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 February 20, 2025 15:09
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;