CoreProtect

CoreProtect

1M Downloads

[API] Custom container transaction

LOOHP opened this issue ยท 2 comments

commented

Hello! I've gone through the CoreProtect API just now to see if it is possible to integrate CoreProtect logging with a plugin of mine.

My plugin (effectively) adds an inventory to all bookshelves in the world. Essentially by opening a bukkit inventory upon right clicking one. So I was wondering whether I can log these custom container transaction through the API.

I saw a method in the API which logs transactions, it takes a location as an argument. But in my case, that wouldn't really work as CoreProtect won't know how to get the bookshelf contents from the location as it is not a Minecraft builtin container.

If this isn't possible atm, is there any chance it could be an API feature in the future?

Thank you!

commented

I was having this same question since I was creating something like a team enderchest and wanted to log these using core protect as well.

commented

I really would like CoreProtect to add compatibility with BookShelf (the bookshelf will be a container, and I don't want books to be stolen), as well as with EditableSigns (so that they don't rewrite the plates)