#ChestSortEvent

1 messages · Page 1 of 1 (latest)

mortal heron
#

könnten sie nicht das ChestSortEvent benutzen um das Menü-item auf "unsortable" zu setzen oder direkt den slot?
link zum plugin: https://github.com/mfnalex/ChestSort/blob/master/HOW_TO_USE_API.md#custom-chestsort-event

couldn't you use the ChestSortEvent to set the menu item to "unsortable" or the slot directly?

link to plugin: https://github.com/mfnalex/ChestSort/blob/master/HOW_TO_USE_API.md#custom-chestsort-event

GitHub

Best sorting plugin for Minecraft / Spigot 1.14+. Contribute to mfnalex/ChestSort development by creating an account on GitHub.

cold kettle
#

I wonder what you are asking for, help with development? asking for DeluxeMenu to add a feature?

mortal heron
#

I want the plugin to add the event because I can then duplicate the item

#

couldn't you use the ChestSortEvent to set the menu item to "unsortable" or the slot directly?

mortal heron
cold kettle
#

Afaik ChestSort plugin should not allow sorting in custom inventaries

#

Imagine that the plugin alloe duplicating items in any gui created by another plugin

#

Thats probably ChestSort issue

#

Without that plugin you can duplicate items in menus?

#

If not, then probably ChestSort checks are wrong

#

Try asking them

#

Otherwise wait for a HelpChat dev to reply

mortal heron
slender willow
#

This won't really by our issue to fix

#

but what do you mean by I can increase the menu item in the inventory?

mortal heron
slender willow
#

the chest sorting plugin should be doing that...

#

It should not be letting you sort items inside a custom deluxemenus menu

dapper sand
#

Yes 🙂

slender willow
#

deluxemenus shouldn't have to build any implementation for it, nor would we

dapper sand
#

It should only work in vanilla GUIs

#

@rotund torrent hi

slender willow
#

in fact

#

the developer says to contact them

#

so it's weird they told you to come to us

slender willow
#

nice, makes it easier

dapper sand
#

I would test smth but I'm busy rn: see if "eventory.getHolder() instanceof Container" is enough to make it not sort inventories made by plugins

rotund torrent
#

hi, I don't remember what this is about tbh. is it about only setting one specific item or slot unsortable or the whole inventory?

rotund torrent
rotund torrent
cold kettle
#

Hello mfnalex, i know i mean there must be a way to not sort that, imagine if a sort plugin allows that in all menus, not good, probably something needed to be done

rotund torrent
#

I couldn't find any API information on the spigotmc page, nor in the wiki.

Alternatively, as already suggested in the first post of this thread, DeluxeMenus could simply listen to ChestSortEvent and check if any of the items is a DeluxeMenu item, and whether any of those items is supposed to be unmovable, and then prevent it from being sorted

dapper sand
rotund torrent
#

not an open GUI

#

it's about preventing the item that is used to open the GUI from being moved

slender willow
#

oh

#

deluxemenus doesn't even provide that functionality in the first place (the menu item in player inventory)

#

so that's from another plugin

slender willow
#

@mortal heron this

mortal heron
slender willow
#

your issue does not lie within deluxemenus

#

it's another plugin

#

so you would need to talk to that developer, or see if mfnalex could add support for whatever plugin you're using to add the menu item to the player's inventory

rotund torrent