CoreProtect

CoreProtect

1M Downloads

Throw warning / error on rollback on main bukkit thread

bdotsamir opened this issue ยท 0 comments

commented

Lost my mind for a bit trying to figure out why the API wasn't rolling back when I told it to. Turns out, the documentation stated that it needs to be called asynchronously, and my eyes skipped over it. Would help idiots like me tremendously to be yelled at when we try to roll back on the main thread.

https://github.com/PlayPro/CoreProtect/blob/b48dcec5898e4f0369440d306b0b1cbcb697f67c/src/main/java/net/coreprotect/CoreProtectAPI.java#L522C22-L522C22

I'll submit a pr if you'd like?