Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with ChestSort #167

Open
osipxd opened this issue Jan 4, 2021 · 3 comments
Open

Integration with ChestSort #167

osipxd opened this issue Jan 4, 2021 · 3 comments

Comments

@osipxd
Copy link
Member

osipxd commented Jan 4, 2021

It seems that RPGInventory can create items that the player should not be able to move in their inventory. Those however cannot be detected by ChestSort which means that the items get moved if the player uses ChestSort to sort their inventory. ChestSort has an API that can be used to tell ChestSort what items should not be movable. If you are interested in making both plugins compatible, you can softdepend on ChestSort, import the ChestSortAPI via maven or gradle and listen to the ChestSortEvent. Whenever the inventory contains one of the unmovable items, just use the method ChestSortEvent#setUnmovable(int slot) or #setUnmovable(ItemStack item).

@mfnalex
Copy link

mfnalex commented Jan 4, 2021

I'll just leave some links to the ChestSort API :)

General documentation:
https://github.com/JEFF-Media-GbR/Spigot-ChestSort/blob/master/HOW_TO_USE_API.md

Javadocs for the ChestSortEvent:
https://repo.jeff-media.de/javadocs/ChestSortAPI/de/jeff_media/ChestSortAPI/ChestSortEvent.html

@mfnalex
Copy link

mfnalex commented Jan 16, 2021

Since some more users requested this to me already, I can also create a pull request the following days if that would have any chance to be accepted? :)

@osipxd
Copy link
Member Author

osipxd commented Jan 16, 2021

Yes. Feel free to write to me on Discord if you will have any questions about RPGInvntory API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants