Open SCP0429Teemo opened 4 years ago
This plugin is going to need a rewrite. Honestly it's been a while since I've refactored it, just haven't had the time or felt like it. I'll try to get it working for now, but it'll be a while until the next update after that.
Ok got it
The plugin loads with the server on paper 1.16.3, but players can't trade anymore, they used to be able to trade in 1.16.1. Also when I reload the plugin I get error and in the console it shows null.
plugins : DiscordSRV-1.19.1 TradeUI
logs : [03:51:44] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD' [03:51:45] [main/INFO]: Reloading ResourceManager: Default, bukkit [03:51:45] [Worker-Main-5/INFO]: Loaded 7 recipes [03:51:48] [Server thread/INFO]: Starting minecraft server version 1.16.3 [03:51:48] [Server thread/INFO]: Loading properties [03:51:48] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-2740d5a-890130b (MC: 1.16.3) (Implementing API version 1.16.3-R0.1-SNAPSHOT) [03:51:48] [Server thread/INFO]: Debug logging is disabled [03:51:48] [Server thread/INFO]: Server Ping Player Sample Count: 12 [03:51:48] [Server thread/INFO]: Using 4 threads for Netty based IO [03:51:48] [Server thread/INFO]: Default game type: SURVIVAL [03:51:48] [Server thread/INFO]: Generating keypair [03:51:49] [Server thread/INFO]: Starting Minecraft server on *:25565 [03:51:49] [Server thread/INFO]: Using default channel type [03:51:52] [Server thread/INFO]: [TradeUI] Loading TradeUI v1.1.6b [03:51:52] [Server thread/INFO]: [DiscordSRV] Loading DiscordSRV v1.19.1 [03:51:52] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! [03:51:52] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware. [03:51:52] [Server thread/WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose. [03:51:52] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file. [03:51:52] [Server thread/INFO]: Preparing level "world" [03:51:52] [Server thread/INFO]: -------- World Settings For [world] -------- [03:51:52] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [03:51:52] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [03:51:52] [Server thread/INFO]: Item Despawn Rate: 6000 [03:51:52] [Server thread/INFO]: Item Merge Radius: 2.5 [03:51:52] [Server thread/INFO]: View Distance: 10 [03:51:52] [Server thread/INFO]: Arrow Despawn Rate: 1200 Trident Respawn Rate:1200 [03:51:52] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [03:51:52] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [03:51:52] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Desert: 14357617 Igloo: 14357618 Jungle: 14357619 Swamp: 14357620 Monument: 10387313 Ocean: 14357621 Shipwreck: 165745295 End City: 10387313 Slime: 987234911 Bastion: 30084232 Fortress: 30084232 Mansion: 10387319 Fossil: 14357921 Portal: 34222645 [03:51:52] [Server thread/INFO]: Experience Merge Radius: 3.0 [03:51:52] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [03:51:52] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Ra 48 / Mi 16 / Tiv true [03:51:52] [Server thread/INFO]: Mob Spawn Range: 6 [03:51:52] [Server thread/INFO]: Cactus Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Cane Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Melon Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Mushroom Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Sapling Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Beetroot Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Carrot Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Potato Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Wheat Growth Modifier: 100% [03:51:52] [Server thread/INFO]: NetherWart Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Vine Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Cocoa Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Bamboo Growth Modifier: 100% [03:51:52] [Server thread/INFO]: SweetBerry Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Kelp Growth Modifier: 100% [03:51:52] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [03:51:52] [Server thread/INFO]: Max TNT Explosions: 100 [03:51:53] [Server thread/INFO]: -------- World Settings For [world_nether] -------- [03:51:53] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [03:51:53] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [03:51:53] [Server thread/INFO]: Item Despawn Rate: 6000 [03:51:53] [Server thread/INFO]: Item Merge Radius: 2.5 [03:51:53] [Server thread/INFO]: View Distance: 10 [03:51:53] [Server thread/INFO]: Arrow Despawn Rate: 1200 Trident Respawn Rate:1200 [03:51:53] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [03:51:53] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [03:51:53] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Desert: 14357617 Igloo: 14357618 Jungle: 14357619 Swamp: 14357620 Monument: 10387313 Ocean: 14357621 Shipwreck: 165745295 End City: 10387313 Slime: 987234911 Bastion: 30084232 Fortress: 30084232 Mansion: 10387319 Fossil: 14357921 Portal: 34222645 [03:51:53] [Server thread/INFO]: Experience Merge Radius: 3.0 [03:51:53] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [03:51:53] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Ra 48 / Mi 16 / Tiv true [03:51:53] [Server thread/INFO]: Mob Spawn Range: 6 [03:51:53] [Server thread/INFO]: Cactus Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Cane Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Melon Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Mushroom Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Sapling Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Beetroot Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Carrot Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Potato Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Wheat Growth Modifier: 100% [03:51:53] [Server thread/INFO]: NetherWart Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Vine Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Cocoa Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Bamboo Growth Modifier: 100% [03:51:53] [Server thread/INFO]: SweetBerry Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Kelp Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [03:51:53] [Server thread/INFO]: Max TNT Explosions: 100 [03:51:53] [Server thread/INFO]: -------- World Settings For [world_the_end] -------- [03:51:53] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [03:51:53] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [03:51:53] [Server thread/INFO]: Item Despawn Rate: 6000 [03:51:53] [Server thread/INFO]: Item Merge Radius: 2.5 [03:51:53] [Server thread/INFO]: View Distance: 10 [03:51:53] [Server thread/INFO]: Arrow Despawn Rate: 1200 Trident Respawn Rate:1200 [03:51:53] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [03:51:53] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [03:51:53] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Desert: 14357617 Igloo: 14357618 Jungle: 14357619 Swamp: 14357620 Monument: 10387313 Ocean: 14357621 Shipwreck: 165745295 End City: 10387313 Slime: 987234911 Bastion: 30084232 Fortress: 30084232 Mansion: 10387319 Fossil: 14357921 Portal: 34222645 [03:51:53] [Server thread/INFO]: Experience Merge Radius: 3.0 [03:51:53] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1 [03:51:53] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Ra 48 / Mi 16 / Tiv true [03:51:53] [Server thread/INFO]: Mob Spawn Range: 6 [03:51:53] [Server thread/INFO]: Cactus Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Cane Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Melon Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Mushroom Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Sapling Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Beetroot Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Carrot Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Potato Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Wheat Growth Modifier: 100% [03:51:53] [Server thread/INFO]: NetherWart Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Vine Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Cocoa Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Bamboo Growth Modifier: 100% [03:51:53] [Server thread/INFO]: SweetBerry Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Kelp Growth Modifier: 100% [03:51:53] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [03:51:53] [Server thread/INFO]: Max TNT Explosions: 100 [03:51:53] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld [03:51:55] [Server thread/INFO]: Preparing spawn area: 0% [03:51:55] [Server thread/INFO]: Preparing spawn area: 0% [03:51:55] [Server thread/INFO]: Preparing spawn area: 0% [03:51:55] [Server thread/INFO]: Preparing spawn area: 0% [03:51:55] [Server thread/INFO]: Preparing spawn area: 0% [03:51:55] [Server thread/INFO]: Preparing spawn area: 59% [03:51:56] [Server thread/INFO]: Time elapsed: 3006 ms [03:51:56] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether [03:51:57] [Server thread/INFO]: Preparing spawn area: 0% [03:51:57] [Server thread/INFO]: Preparing spawn area: 0% [03:51:57] [Server thread/INFO]: Preparing spawn area: 0% [03:51:57] [Server thread/INFO]: Preparing spawn area: 0% [03:51:58] [Worker-Main-8/INFO]: Preparing spawn area: 83% [03:51:58] [Server thread/INFO]: Time elapsed: 2481 ms [03:51:58] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end [03:51:59] [Server thread/INFO]: Preparing spawn area: 0% [03:51:59] [Server thread/INFO]: Preparing spawn area: 33% [03:51:59] [Worker-Main-8/INFO]: Preparing spawn area: 83% [03:52:00] [Worker-Main-8/INFO]: Preparing spawn area: 86% [03:52:00] [Worker-Main-7/INFO]: Preparing spawn area: 92% [03:52:00] [Server thread/INFO]: Time elapsed: 2044 ms [03:52:00] [Server thread/INFO]: [TradeUI] Enabling TradeUI v1.1.6b [03:52:00] [Server thread/INFO]: [0;36;1m[TradeUI][0;37;22m.DEBUG >> Generated default plugin folder[m [03:52:00] [Server thread/INFO]: [0;36;1m[TradeUI][0;37;22m.DEBUG >> Successfully created file; plugins\TradeUI\config.yml[m [03:52:00] [Server thread/INFO]: [0;36;1m[TradeUI][0;37;22m.DEBUG >> Successfully generated default configuration file; plugins\TradeUI\config.yml[m [03:52:00] [Server thread/INFO]: [0;36;1m[TradeUI][0;37;22m.DEBUG >> Loading general configuration settings[m [03:52:00] [Server thread/INFO]: [0;36;1m[TradeUI][0;37;22m.INFO >> [0;32;1mrunning on minecraft version [0;37;22m116[m [03:52:00] [Server thread/INFO]: [DiscordSRV] Enabling DiscordSRV v1.19.1 [03:52:00] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[03:52:04] [DiscordSRV - Initialization/INFO]: [DiscordSRV] DiscordSRV is up-to-date. (930605a68cca8d2823d67ba4bfb20706b5c90ddf) [03:52:06] [DiscordSRV - Initialization/INFO]: [DiscordSRV] [JDA] Login Successful! [03:52:06] [JDA MainWS-WriteThread/INFO]: [DiscordSRV] [JDA] Connected to WebSocket [03:52:07] [JDA MainWS-ReadThread/INFO]: [DiscordSRV] [JDA] Finished Loading! [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] 已找到伺服器 G:渣男&破麻帝國(735242124701991013) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:出入處(735257628317450350) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:聊天大廳(735242125150519387) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:自我介紹區(735242125150519388) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:我懷疑你開車但是我沒有證據(735242125150519389) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:指令(735242125150519392) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:101(735256458228400200) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:86(746692567256530976) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:minecraft-公共頻(758751913830907964) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:minecarft-後台(758752007426408561) [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] 控制台轉送已指派至頻道 758752007426408561 [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] Not using JDBC, one of host/port/database was default [03:52:07] [DiscordSRV - Initialization/INFO]: [DiscordSRV] 未啟用鉤取任何聊天插件 [03:52:15] [User Authenticator #1/INFO]: UUID of player Cengizarslan35 is bbe320ec-2698-3068-a144-1dca477b6793 [03:52:16] [Server thread/INFO]: Cengizarslan35[/27.52.235.150:23780] logged in with entity id 267 at ([world]220.94971672137567, 72.0, 257.3912437945472) [03:53:28] [User Authenticator #2/INFO]: UUID of player SCP_Teemo is f360fabb-dd57-3363-a70f-7cbd79fd2aef [03:53:29] [Server thread/INFO]: SCP_Teemo[/61.230.128.219:62777] logged in with entity id 399 at ([world]220.17320151438688, 72.0, 260.140243146871) [03:53:44] [Server thread/INFO]: SCP_Teemo issued server command: /trade Cengizarslan35 [03:53:49] [Server thread/INFO]: SCP_Teemo issued server command: /trade Cengizarslan35
org.bukkit.command.CommandException: Unhandled exception executing command 'trade' in plugin TradeUI v1.1.6b at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:758) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.PlayerConnection.handleCommand(PlayerConnection.java:1697) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1540) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(SourceFile:144) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(SourceFile:118) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:941) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:934) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(SourceFile:127) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:918) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:850) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at java.lang.Thread.run(Unknown Source) [?:1.8.0_261] Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_16_R1/IChatBaseComponent at me.felnstaren.trade.request.TradeRequestHandler.addRequest(TradeRequestHandler.java:114) ~[?:?] at me.felnstaren.trade.request.TradeRequestHandler.attemptSendRequest(TradeRequestHandler.java:108) ~[?:?] at me.felnstaren.command.trade.player.TradePlayerArgument$1.handle(TradePlayerArgument.java:32) ~[?:?] at me.felnstaren.command.CommandContinuator.stub(CommandContinuator.java:57) ~[?:?] at me.felnstaren.command.CommandContinuator.forward(CommandContinuator.java:25) ~[?:?] at me.felnstaren.command.SubArgument.handle(SubArgument.java:20) ~[?:?] at me.felnstaren.command.CommandContinuator.forward(CommandContinuator.java:32) ~[?:?] at me.felnstaren.command.trade.TradeMaster.handle(TradeMaster.java:51) ~[?:?] at me.felnstaren.command.MasterCommand.onCommand(MasterCommand.java:26) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] ... 18 more Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_16_R1.IChatBaseComponent at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:96) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_261] at me.felnstaren.trade.request.TradeRequestHandler.addRequest(TradeRequestHandler.java:114) ~[?:?] at me.felnstaren.trade.request.TradeRequestHandler.attemptSendRequest(TradeRequestHandler.java:108) ~[?:?] at me.felnstaren.command.trade.player.TradePlayerArgument$1.handle(TradePlayerArgument.java:32) ~[?:?] at me.felnstaren.command.CommandContinuator.stub(CommandContinuator.java:57) ~[?:?] at me.felnstaren.command.CommandContinuator.forward(CommandContinuator.java:25) ~[?:?] at me.felnstaren.command.SubArgument.handle(SubArgument.java:20) ~[?:?] at me.felnstaren.command.CommandContinuator.forward(CommandContinuator.java:32) ~[?:?] at me.felnstaren.command.trade.TradeMaster.handle(TradeMaster.java:51) ~[?:?] at me.felnstaren.command.MasterCommand.onCommand(MasterCommand.java:26) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-1.16.3.jar:git-Spigot-2740d5a-890130b] ... 18 more