Spigot Trade System | Custom layouts! 2.0.6

Setup your own trade gui ingame and create your way to trade with other players!

  1. Exactly.
     
  2. #244 CodingAir, Aug 25, 2020
    Last edited: Aug 25, 2020
  3. What is the new placeholder ? :)
     
  4. Oh yeah, sorry about that.
    It's "%TRADESYSTEM_STATUS%".
     
    • Like Like x 1
  5. [03:01:25 INFO]: norrovi issued server command: /trade anquilomon
    [03:01:25 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'trade' in plugin TradeSystem v1.2.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchCommand(CraftServer.java:794) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.PlayerConnection.handleCommand(PlayerConnection.java:1925) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:1736) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:1192) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:1185) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1316) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:1001) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    at java.lang.Thread.run(Thread.java:834) [?:?]
    Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
    at de.codingair.tradesystem.trade.commands.TradeCMD.request(TradeCMD.java:368) ~[?:?]
    at de.codingair.tradesystem.trade.commands.TradeCMD$7.runCommand(TradeCMD.java:220) ~[?:?]
    at de.codingair.codingapi.server.commands.builder.special.MultiCommandComponent.runCommand(MultiCommandComponent.java:28) ~[?:?]
    at de.codingair.codingapi.server.commands.builder.CommandBuilder.onCommand(CommandBuilder.java:229) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.1.jar:git-Tuinity-"650532a"]
    ... 18 more
     
  6. When both players accept a trade with items in the trading windows, we both click accept and the indicator turns green for both sides. However, the trade does not execute and glitches out. What's the cause of this issue?
     
  7. Which version do you use?
    Do you get errors in your console?
    Is the countdown enabled in your config?
     
  8. TradeSystem\Languages
    under eng.yml
    Want_To_Trade:'&7The player &c%player% &7wants to trade with you. &8[%accept% &8| %deny%&8]'
    Cannot change the &8 color code of %accept%, once it is changed, an error will be reported

    Code (Text):
    [18:54:03 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'trade' in plugin TradeSystem v1.2.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.16.2.jar:git-Paper-174]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.2.jar:git-Paper-174]
            at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:800) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.PlayerConnection.handleCommand(PlayerConnection.java:1903) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1714) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.16.2.jar:git-Paper-174]        at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:1135) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:1128) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:1089) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:1003) ~[patched_1.16.2.jar:git-Paper-174]
            at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.2.jar:git-Paper-174]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_261]
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
            at de.codingair.tradesystem.trade.commands.TradeCMD.request(TradeCMD.java:371) ~[?:?]
            at de.codingair.tradesystem.trade.commands.TradeCMD$7.runCommand(TradeCMD.java:220) ~[?:?]
            at de.codingair.codingapi.server.commands.builder.special.MultiCommandComponent.runCommand(MultiCommandComponent.java:28) ~[?:?]
            at de.codingair.codingapi.server.commands.builder.CommandBuilder.onCommand(CommandBuilder.java:229) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.2.jar:git-Paper-174]
            ... 18 more
     
  9. Try to change the accept color at 'Want_To_Trade_Accept'
    Code (YAML):
    Want_To_Trade: '&7The player &c%player% &7wants to trade with you. &8[%accept% &8| %deny%&8]'
    Want_To_Trade_Accept
    : '&aAccept'
    You must keep %accept% in that line. You’ll get this error if you edit that.
     
  10. I keep it, but once changed &8%accept%&8
    Becomes &f%accept%
    Or &7%accept%
    Will report errors
    Same for %deny%

    It’s worth mentioning that I generally use §f
    But I will use §7§f to ensure that there will be no problems
     
  11. I use the latest version: 1.2.1 and the countdown is disabled, I don't get errors in my config
     
  12. Hi! Is there a way to trade experience with this?
     
  13. Yes, but only as a replacement for money. Check your config.
     
  14. Can you add logs? So a server owner can view which items got traded and avoid boosting (for example in Prison servers)?
     
  15. [Tue, 8. Sep 2020 08:19:38 CEST WARN] Task #591 for TradeSystem v1.2.1 generated an exception [Tue, 8. Sep 2020 08:19:38 CEST WARN] Task #591 for TradeSystem v1.2.1 generated an exception
     
  16. Please post the entire error on pastebin or create a github ticket for that here.