1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question Buying items from a shop

Discussion in 'Developer Support' started by mastalewt, Jul 18, 2020.

  1. mastalewt

    Joined:
    Jul 10, 2020
    Messages:
    6
    Likes Received:
    7
    Any tips for buying items from a shop? I just need someone to point me in the right direction. Thanks!

    EDIT: Nevermind, got it working!

    Solution;
    Interfaces.newQuery().containedItem(ItemDefinition.getNamePredicate("Item name")).results();
     
    #1 mastalewt, Jul 18, 2020
    Last edited: Jul 18, 2020
    CuppaJava likes this.
  2. CuppaJava

    CuppaJava cuppa.drink(java);

    Joined:
    Mar 13, 2018
    Messages:
    6,121
    Likes Received:
    1,378
    Just use CuppaShopperAIO ;)
    --- Double Post Merged, Jul 18, 2020, Original Post Date: Jul 18, 2020 ---
    PS use the Shop interface, like Shop.buy(), check out the API
     
    mastalewt likes this.
  3. mastalewt

    Joined:
    Jul 10, 2020
    Messages:
    6
    Likes Received:
    7
    Oh, didn't knew that, thanks a lot man! And i would use your stuff but i'm trying to make a bot so i get my "Bot Author" title :)
     
    CuppaJava likes this.

Share This Page

Loading...