Spigot VTL ~ VillagerTradeLimiter [1.14 - 1.18.2] 1.5.6

~ Fix those pesky OP villager discounts! ~

  1. PretzelJohn submitted a new resource:

    VillagerTradeLimiter - ~ Fix those OP villager discounts! ~

    Read more about this resource...
     
    • Like Like x 1
  2. Post your suggestions, bugs, errors, questions, and such here!

    Also, please let me know if this plugin works/doesn't work on your server version.
     
    • Like Like x 1
    • Like Like x 1
  3. PretzelJohn updated VTL ~ VillagerTradeLimiter [1.14 - 1.16.4] with a new update entry:

    1.1.0 ~ Added per-item configuration & automatic config updater

    Read the rest of this update entry...
     
  4. [ERROR]: Could not pass event PlayerInteractEntityEvent to VillagerTradeLimiter v1.0.3
    java.lang.NullPointerException: null
    at com.pretzel.dev.villagertradelimiter.VillagerTradeLimiter.interact(VillagerTradeLimiter.java:188) ~[?:?]
    at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor103.execute(Unknown Source) ~[?:?]
    at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:2221) ~[?:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:43) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:151) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:114) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1205) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1198) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:125) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1174) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1018) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:180) ~[patched_1.16.4.jar:git-Yatopia-"21d5a4e"]
     
  5. This plugin was advertised to be able to be used in 1.14- 1.16.4, tried all version using 1.15.2 still doesn't work. i would like to know if this is a bug or a mistake by the author
     
  6. I haven't tested on all versions yet, but it theoretically should work from 1.14 on. What do you mean by it doesn't work? Are you getting an error? If so, could you post the full error using https://pastebin.com

    Also, could you include the server type and version?
     
    #9 PretzelJohn, Jan 5, 2021
    Last edited: Jan 5, 2021
  7. @hitewaer, does this error only occur when right-clicking on a villager that doesn't have a profession? I'll fix that in version 1.1.2! Also, please use https://pastebin.com next time for errors. Helps keep this place tidy :)
     
    #10 PretzelJohn, Jan 5, 2021
    Last edited: Jan 5, 2021
  8. I'm getting this error on 1.16.4 :(

    [13:31:17] [Server thread/INFO]: [VillagerTradeLimiter] Enabling VillagerTradeLimiter v1.1.2

    [13:31:17] [Server thread/ERROR]: Error occurred while enabling VillagerTradeLimiter v1.1.2 (Is it up to date?)

    java.lang.NoSuchMethodError: java.lang.String.strip()Ljava/lang/String;
    at com.pretzel.dev.villagertradelimiter.ConfigUpdater.getVersion(ConfigUpdater.java:22) ~[?:?]
    at com.pretzel.dev.villagertradelimiter.ConfigUpdater.updateConfig(ConfigUpdater.java:28) ~[?:?]
    at com.pretzel.dev.villagertradelimiter.VillagerTradeLimiter.loadSettings(VillagerTradeLimiter.java:68) ~[?:?]
    at com.pretzel.dev.villagertradelimiter.VillagerTradeLimiter.onEnable(VillagerTradeLimiter.java:51) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:380) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:501) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:415) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:469) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:240) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:941) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:178) ~[patched_1.16.4.jar:git-Tuinity-"8056d13"]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]

    [13:31:17] [Server thread/INFO]: [VillagerTradeLimiter] Disabling VillagerTradeLimiter v1.1.2
     
  9. @DarkoR12 Sorry about that! Try updating VillagerTradeLimiter to 1.1.3
     
    #13 PretzelJohn, Jan 5, 2021
    Last edited: Jan 5, 2021
  10. The plugin is having a bit of an issue starting when I start up the server.
    https://pastebin.com/LiUsKEQD

    I recently updated my paper version to the latest version due to a crash exploit issue that was found. My server is now running Paper 1.16.4-394. It was working fine until I updated my Paper version to the latest, but I can't go back to an older version due to the crash exploit issue that was found.

    Any ideas on how to fix?
     
  11. Seems to be another issue with Java version. I used isBlank() which doesn't exist until Java 11. I will fix this in 1.1.4! Please let me know if that fixes it for you or not :)
     
    #16 PretzelJohn, Jan 8, 2021
    Last edited: Jan 8, 2021
  12. Yep! That update seems to have fixed the issue. Thank you! :)
     
  13. You're very welcome!!!