erikzimmermann / TradeSystem

A highly customizable, free and open-source Minecraft plugin for trading between players.
https://www.spigotmc.org/resources/trade-system-custom-layouts.58434/
MIT License
76 stars 48 forks source link

Problem with implementing API into own plugin. #504

Closed EncryptSL closed 5 months ago

EncryptSL commented 6 months ago

Describe the bug

  1. I have problem with include api of TradeSystem into my own custom economy plugin.

  2. When i try implement EditorInfo, IDE can't find de.codingair.codingapi.tools.items.ItemBuilder, because is not implemented in api but is shaded in de.codingair.tradesystem.lib.codingapi.tools.items.ItemBuilder.

  3. This is primary not my issue, i can manually implement your library into my project.

  4. When i try compile plugin with added for compileOnly("com.github.CodingAir:CodingAPI:1.77"), plugin after load on enabled server dump

    23:52:31[ERROR] [CreditLite] Failed to register events for class com.github.encryptsl.credit.hook.tradesystem.TradeSystemListener because de/codingair/codingapi/tools/items/ItemBuilder does not exist.
  5. Okay, plugin can't find class, Now i know can't only compile library, next i'm tried create shade in my plugin without success TradeSystem dump error https://paste.hostify.cz/?e0f6c165e26f45fa#6TZwtjpt94irpSvETFNtwMHNPspWTTDKACvuFLo7f3dw

Screenshots Snímek obrazovky 2024-01-18 000045

Snímek obrazovky 2024-01-18 004314

Snímek obrazovky 2024-01-18 004421

erikzimmermann commented 5 months ago

Please take a look at the updated README.md on the main page: https://github.com/erikzimmermann/TradeSystem