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

How to use ScoreboardEconomy Adapter? #57

Closed
pikmin6000 opened this issue Sep 6, 2024 · 8 comments
Closed

How to use ScoreboardEconomy Adapter? #57

pikmin6000 opened this issue Sep 6, 2024 · 8 comments

Comments

@pikmin6000
Copy link

Hello, I tried using the ScoreboardEconomyAdapter and while using /stonks inspect @s would give the correct balance, when I do /market the various items for sale don't show up properly (they display as barrier blocks and I am unable to make a sell offer as the mod doesn't recognize me as having the item in my inventory).

I am using stonks fabric 2.0.5 for minecraft 1.20.5.

@nahkd123
Copy link
Owner

nahkd123 commented Sep 6, 2024

Does it works if you use the give command from Stonks? The command is /stonks give if I remembered correctly.

@pikmin6000
Copy link
Author

When I do /stonks give @s steak 1 the server says "Gave 1x Steak" but I don't actually receive any items.

@nahkd123
Copy link
Owner

nahkd123 commented Sep 6, 2024

When I do /stonks give @s steak 1 the server says "Gave 1x Steak" but I don't actually receive any items.

Can you share the configuration file here?

@pikmin6000
Copy link
Author

pikmin6000 commented Sep 6, 2024

@nahkd123
Copy link
Owner

nahkd123 commented Sep 7, 2024

Can you try Stonks for 1.21/1.21.1? It still give me the item when using /stonks give command.

Additionally, can you give me your mods list so I can try reproducing the issue?

@pikmin6000
Copy link
Author

I get the same issue when I try 1.21. The only mods I'm using are fabric api and stonks fabric (file names fabric-api-0.102.0+1.21.jar and stonks-fabric-2.1.0+1.21.jar).

@nahkd123
Copy link
Owner

nahkd123 commented Sep 7, 2024

  // Adapters
+ useAdapter stonks.fabric.adapter.provided.ItemsAdapter
  useAdapter stonks.fabric.adapter.provided.ScoreboardEconomyAdapter
      // Name of scoreboard objective you want to use
      // If the objective doesn't exists, it will creates a new "dummy" objective

Add stonks.fabric.adapter.provided.ItemsAdapter so that Stonks can recognize the items.

@pikmin6000
Copy link
Author

Oh, I didn't realize that was necessary when using the scoreboard adapter. Thank you for the help, the issue has been resolved.

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

No branches or pull requests

2 participants