Premium Vouchers [Paid]

Discussion in 'Resource Discussion' started by BadBones69, Oct 23, 2015.

  1. Sorry I forgot to update MassiveStats's version number. Should be fixed now.
     
  2. Ok thank you very much good sir. :)
     
  3. And you are correct. The update message is now gone. Thank you very much.
     
    • Like Like x 1
  4. Having an issue with the plugin...

    I was planning on using the Vouchers plugin to make perk items that give people a specific permission when they use it, however I've run into a bit of a problem... It seems that the server crashes every time I right-click to use a perk while looking at air. It doesn't crash the server if I open it while looking at a block.

    Here's the message that comes up when the server crashes: https://pastebin.com/QG4RWMUd
    As you can see on lines 1-2, I can use the plugin commands and it applies the reward properly, however it crashes after applying it (line 3+).

    We're using Akarin 1.12 I believe, if that helps.
     
  5. ITS A TRAP "10.10 03:07:17 [Server] INFO java.lang.AssertionError: TRAP"

    With that joke out of the way i think it might be due to Akarin. I am not sure what that is but I am guessing a fork of spigot. If so send them this error as it seems to be from their jar. My plugin is normal spigot compatible so everything else has not been tested.
     
  6. Is it possible to make the papers/items run custom commands from plugins like MyCommand?
     
  7. needs and update to 1.13.2
     
  8. Code (Text):

    [16:11:36 ERROR]: null
    org.bukkit.command.CommandException: Cannot execute command 'vouchers:vouch' in plugin Vouchers v1.7.2 - plugin is disabled.
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:36) ~[patched_1.13.2.jar:git-Paper-388]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) ~[patched_1.13.2.jar:git-Paper-388]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:729) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1757) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1561) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:12) ~[patched_1.13.2.jar:git-Paper-388]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_181]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_181]
    at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:109) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1016) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:943) ~[patched_1.13.2.jar:git-Paper-388]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:841) ~[patched_1.13.2.jar:git-Paper-388]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
     
  9. Whenever I run /voucher open or /voucher open 1
    I keep getting a crash error.


    Code (Text):
    27.11 16:27:01 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'voucher' in plugin Vouchers v1.7.2
    27.11 16:27:01 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1397) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1232) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_171]
    27.11 16:27:01 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_171]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]
    27.11 16:27:01 [Server] INFO Caused by: java.lang.NullPointerException
    27.11 16:27:01 [Server] INFO at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:94) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO at me.badbones69.vouchers.api.objects.ItemBuilder.build(ItemBuilder.java:400) ~[?:?]
    27.11 16:27:01 [Server] INFO at me.badbones69.vouchers.api.objects.Voucher.buildItem(Voucher.java:176) ~[?:?]
    27.11 16:27:01 [Server] INFO at me.badbones69.vouchers.controlers.GUI.openGUI(GUI.java:40) ~[?:?]
    27.11 16:27:01 [Server] INFO at me.badbones69.vouchers.Main.onCommand(Main.java:71) ~[?:?]
    27.11 16:27:01 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.12.2.jar:git-Spigot-2086bb0-d0a3620]
    27.11 16:27:01 [Server] INFO ... 15 more
     
  10. Hey there BadBone! I'm getting the same error these dudes above me are. I'm using 1.13.2. Any news on an update sir?
     
  11. Hi @BadBones69 we ve this error in console
    Code (Text):
    [14:47:47 WARN]: java.lang.NullPointerException
    [14:47:47 WARN]:        at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:98)
    [14:47:47 WARN]:        at me.badbones69.vouchers.api.objects.ItemBuilder.build(ItemBuilder.java:400)
    [14:47:47 WARN]:        at me.badbones69.vouchers.api.objects.Voucher.buildItem(Voucher.java:176)
    [14:47:47 WARN]:        at me.badbones69.vouchers.api.Vouchers.getVoucherFromItem(Vouchers.java:61)
    [14:47:47 WARN]:        at me.badbones69.vouchers.controlers.VoucherClick.onVoucherClick(VoucherClick.java:41)
    [14:47:47 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor718.execute(Unknown Source)
    [14:47:47 WARN]:        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70)
    [14:47:47 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
    [14:47:47 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [14:47:47 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513)
    [14:47:47 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:236)
    [14:47:47 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:203)
    [14:47:47 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:199)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1036)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:26)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:5)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14)
    [14:47:47 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    [14:47:47 WARN]:        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:850)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774)
    [14:47:47 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666)
    [14:47:47 WARN]:        at java.lang.Thread.run(Thread.java:748)
    [14:47:48 INFO]: [Nvl. 30]  ☃ TheDark591: en el hospital
     
  12. giveall command issue

    [​IMG]

    [​IMG]

    does not deliver anything, 1.8 and 1.12 version.
     
  13. Is there a way to make Vouchers drop from specific entities?
     
  14. Is it possible to add a plugin in a few seconds to re-use a coupon?
     
  15. You have to use another plugin to do so. The item just needs the same lore and name for it to work.

    Unsure what you mean sorry.
     
  16. Added a similar feature "Two-Step-Authentication"
    But you can set the number of seconds to use.
     
  17. If it had 1.7 support I'd buy it.
     
  18. Hey Badbones, may you add an item cooldown before it can be used again? it'd be a great addition so it can prevent spam on specific items. While also adding a cooldown message that can be enabled true or false.
     
  19. I get this error when I use 1 single plugin with similar functionality.
    Example: CrazyEnchantments
    @BadBones69
    Code (Text):
    [18:09:14 WARN]: java.lang.NullPointerException
    [18:09:14 WARN]:        at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:98)
    [18:09:14 WARN]:        at me.badbones69.vouchers.api.objects.ItemBuilder.build(ItemBuilder.java:400)
    [18:09:14 WARN]:        at me.badbones69.vouchers.api.objects.Voucher.buildItem(Voucher.java:176)
    [18:09:14 WARN]:        at me.badbones69.vouchers.api.Vouchers.getVoucherFromItem(Vouchers.java:61)
    [18:09:14 WARN]:        at me.badbones69.vouchers.controlers.VoucherClick.onVoucherClick(VoucherClick.java:41)
    [18:09:14 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor176.execute(Unknown Source)
    [18:09:14 WARN]:        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70)
    [18:09:14 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
    [18:09:14 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [18:09:14 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513)
    [18:09:14 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:236)
    [18:09:14 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:203)
    [18:09:14 WARN]:        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:199)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1035)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:26)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:5)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14)
    [18:09:14 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    [18:09:14 WARN]:        at java.util.concurrent.FutureTask.run(Unknown Source)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:850)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774)
    [18:09:14 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666)
    [18:09:14 WARN]:        at java.lang.Thread.run(Unknown Source)
     
    #379 MrBee, Apr 5, 2019
    Last edited: Apr 5, 2019
  20. @BadBones69

    Code (Text):
    [04:21:39 WARN]: [Vouchers] MassiveStats returned an invalid response for this plugin.