Skip to content

ShopPreTransactionEvent - filter out specific items from being sold #6

Description

@foxfirecodes

i've got a plugin i've developed privately for a server i work for that uses blaze rods for a custom tool item. however, our ShopGUI+ shop also lets players sell blaze rods.

i was hoping that either your API would allow me to remove specific items from the list of items to be sold (e.g. i could filter the list and remove any items with the particular NBT that the tools use), or that there would simply be some way to specify that we only want to sell items that have no lore or displayname.

i recognize that the latter is a non-API change, and that this is not the place to suggest those kinds of features, but figured i'd mention it here as a potentially far less difficult to implement change -- simply letting users specify "none" for name/lore on items or something along those lines could solve the problem by allowing us to limit sold items to those obtained from vanilla without name or lore.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions