Place a static method check to prevent errors.

This commit is contained in:
Zontreck 2024-02-13 21:48:02 -07:00
parent e0bbf63fc1
commit 0b79531751

View file

@ -73,6 +73,13 @@ public class EventDispatcher
// Dispatch the event now
if(!canPost) continue;
if(!M.canAccess(null))
{
canPost=false;
System.out.println("ERROR: Even subscriber methods must be static and public");
}
try {
if(event.isCancelled() && !subscriber.allowCancelled())
continue;