Spigot Lottery 1.4.6

The Perfect solution for gambling with Money

  1. Hello! I got 1 Problem! There is no message after a Draw in the Chat, only i can see it (i got the "*" permission) Which permissions needs players to see the message?
     
  2. NickCloud updated Lottery with a new update entry:

    1.17 Support

    Read the rest of this update entry...
     
    • Friendly Friendly x 1
  3. On Our Server (PaperMC 1.17 with latest Lottery) we needed to disable the plugin now
    on the draw out the pot was sold to 7 player, to one twice and the pot and the players that got at ickets
    was not resetet.

    This way we cant use the plugin =(
    So it might need a little update for 1.17

    upload_2021-6-26_21-12-5.png
     
  4. I can not reproduce this issue in any way or another.. Just tested it in every way I could think of (though only with 2 players).
    Either the plugin did not load correctly (though there should be errors then) or maybe your configs are corrupted.

    Maybe try to completely wipe the plugin (also the configs) and let everything re-generate.. Other than that I can't do much as long as I can't reproduce it.
     
  5. i might have something....

    Code (Text):

    [20:00:00] [Server thread/INFO]: [LuLuLotterie] Glückwunsch an Cloude_Lecaw für den Jackpot über 7100 Taler in der LuLuLotterie!
    [20:00:00] [Server thread/INFO]: [LuLuLotterie] Glückwunsch an SecretMystery99 für den Jackpot über 7100 Taler in der LuLuLotterie!
    [20:00:00] [Server thread/INFO]: [LuLuLotterie] Glückwunsch an Blueeyestar für den Jackpot über 7100 Taler in der LuLuLotterie!
    [20:00:00] [Server thread/INFO]: [LuLuLotterie] Glückwunsch an Blueeyestar für den Jackpot über 7100 Taler in der LuLuLotterie!
    [20:00:00] [Server thread/WARN]: org.bukkit.command.CommandException: Unhandled exception executing command 'lottery' in plugin Lottery v1.4.4
    [20:00:00] [Server thread/WARN]:     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:821)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:795)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.SpecializedCommands.SpecializedCommandManager.dispatch(SpecializedCommandManager.java:902)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.SpecializedCommands.SpecializedCommandManager.executeCmd(SpecializedCommandManager.java:864)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.SpecializedCommands.SpecializedCommandManager.process(SpecializedCommandManager.java:254)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.SpecializedCommands.SpecializedCommandManager.processCmds(SpecializedCommandManager.java:222)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.SpecializedCommands.SpecializedCommandManager.processCmds(SpecializedCommandManager.java:175)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.Sheduler.Schedule.perform(Schedule.java:381)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.Sheduler.Schedule.safePerform(Schedule.java:308)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.Sheduler.SchedulerManager.checkSchedulers(SchedulerManager.java:367)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.Sheduler.SchedulerManager.access$0(SchedulerManager.java:360)
    [20:00:00] [Server thread/WARN]:     at com.Zrips.CMI.Modules.Sheduler.SchedulerManager$1.run(SchedulerManager.java:312)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
    [20:00:00] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1488)
    [20:00:00] [Server thread/WARN]:     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:477)
    [20:00:00] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1404)
    [20:00:00] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1180)
    [20:00:00] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)
    [20:00:00] [Server thread/WARN]:     at java.base/java.lang.Thread.run(Thread.java:831)
    [20:00:00] [Server thread/WARN]: Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.server.network.PlayerConnection.sendPacket(net.minecraft.network.protocol.Packet)" because "org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.getHandle().b" is null
    [20:00:00] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.sendMessage(CraftPlayer.java:2187)
    [20:00:00] [Server thread/WARN]:     at net.kyori.adventure.audience.Audience.sendMessage(Audience.java:215)
    [20:00:00] [Server thread/WARN]:     at net.kyori.adventure.audience.Audience.sendMessage(Audience.java:189)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcast(CraftServer.java:1586)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcast(CraftServer.java:1558)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcastMessage(CraftServer.java:600)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.Bukkit.broadcastMessage(Bukkit.java:327)
    [20:00:00] [Server thread/WARN]:     at me.Nick.Lottery.DrawMethodes.DrawHandler.drawMethode(DrawHandler.java:107)
    [20:00:00] [Server thread/WARN]:     at me.Nick.Lottery.commands.LotteryCommand.onCommand(LotteryCommand.java:146)
    [20:00:00] [Server thread/WARN]:     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
    [20:00:00] [Server thread/WARN]:     ... 21 more
    [20:00:00] [Server thread/INFO]: Gave 30 experience levels to Cloude_Lecaw
    [20:00:00] [Server thread/INFO]: Unknown command. Type "/help" for help.
     
    is was created when the lottery was drawned

    here is the config.. my it helps...
    Code (Text):
    DrawTime: 1709000
    UseTimeDraw: false
    TimeDrawCheckIntervalSeconds: 60
    TimeDraws:
    - '20:00:00'
    GlobalBoughtMessage: true
    TicketCost: 100.0
    MoneyToPot: 100.0
    ExtraInPot: 50.0
    Refund: 100.0
    TaxesPercent: 0
    ServerAccount: none
    MinPlayers: 1
    BuyCooldownTimeSeconds: 30
    EnableChanceNoWin: true
    ChanceNoWinIfLessTicketsSold: true
    ChanceNoWinPercent: 30/200
    NoWinBackToPotPercent: 100
    Reminder: false
    RemindIntervalSeconds: 3600
    OnlyOnlineWin: false
    LoginWinMessage: true
    LoginWinMessageDelayTicks: 10
    PerformCommandOnLotteryCMD: false
    CommandOnLotteryCMD: lottery status
    UpdateCheck: true
    Metrics: true
    TicketLimits:
      Default: 3
      Spieler: 3
      Admin: 3
      Owner: 3
    BlockedWorlds:
    - testworld
    WinCommands:
      Enabled: true
      ExecuteIfOffline: false
      Commands:
      - experience add %player% 30 levels
      - gmysterybox give %player% 1 3
    Note: our Drawtime is made by a scheduler that throws out by command as choosen time after a week at 20:00
     
    #465 CloudeLecaw, Jun 26, 2021
    Last edited: Jun 26, 2021
  6. So this is the one at draw off (now it worked ... why ever,,,

    Code (Text):
    >....=>....=>.... [23:14:54 INFO]: [LuLuLotterie] Glückwunsch an Blueeyestar für den Jackpot über 1250 Taler in der LuLuLotterie!
    >.... [23:14:54 WARN]: Unexpected exception while parsing console command "lottery draw"
    org.bukkit.command.CommandException: Unhandled exception executing command 'lottery' in plugin Lottery v1.4.4
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:821) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchServerCommand(CraftServer.java:784) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:516) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:478) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1404) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1180) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[patched_1.17.jar:git-Paper-49]
    at java.lang.Thread.run(Thread.java:831) [?:?]
    Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.server.network.PlayerConnection.sendPacket(net.minecraft.network.protocol.Packet)" because "org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.getHandle().b" is null
    at org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.sendMessage(CraftPlayer.java:2187) ~[patched_1.17.jar:git-Paper-49]
    at net.kyori.adventure.audience.Audience.sendMessage(Audience.java:215) ~[patched_1.17.jar:git-Paper-49]
    at net.kyori.adventure.audience.Audience.sendMessage(Audience.java:189) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcast(CraftServer.java:1586) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcast(CraftServer.java:1558) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcastMessage(CraftServer.java:600) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.Bukkit.broadcastMessage(Bukkit.java:327) ~[patched_1.17.jar:git-Paper-49]
    at me.Nick.Lottery.DrawMethodes.DrawHandler.drawMethode(DrawHandler.java:107) ~[?:?]
    at me.Nick.Lottery.commands.LotteryCommand.onCommand(LotteryCommand.java:146) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.17.jar:git-Paper-49]
    ... 9 more
    this on whe not enough play are there

    Code (Text):
    >....=>....=>.... [23:12:50 INFO]: [LuLuLotterie] Es haben nicht genügend Spieler an der LuLuLottery teilgenommen!
    >.... [23:12:50 WARN]: Unexpected exception while parsing console command "lottery draw"
    org.bukkit.command.CommandException: Unhandled exception executing command 'lottery' in plugin Lottery v1.4.4
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:821) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchServerCommand(CraftServer.java:784) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:516) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:478) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1404) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1180) ~[patched_1.17.jar:git-Paper-49]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[patched_1.17.jar:git-Paper-49]
    at java.lang.Thread.run(Thread.java:831) [?:?]
    Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.server.network.PlayerConnection.sendPacket(net.minecraft.network.protocol.Packet)" because "org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.getHandle().b" is null
    at org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.sendMessage(CraftPlayer.java:2187) ~[patched_1.17.jar:git-Paper-49]
    at net.kyori.adventure.audience.Audience.sendMessage(Audience.java:215) ~[patched_1.17.jar:git-Paper-49]
    at net.kyori.adventure.audience.Audience.sendMessage(Audience.java:189) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcast(CraftServer.java:1586) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcast(CraftServer.java:1558) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.broadcastMessage(CraftServer.java:600) ~[patched_1.17.jar:git-Paper-49]
    at org.bukkit.Bukkit.broadcastMessage(Bukkit.java:327) ~[patched_1.17.jar:git-Paper-49]
    at me.Nick.Lottery.DrawMethodes.FewPlayers.notEnoughPlayers(FewPlayers.java:29) ~[?:?]
    at me.Nick.Lottery.DrawMethodes.DrawHandler.drawMethode(DrawHandler.java:44) ~[?:?]
    at me.Nick.Lottery.commands.LotteryCommand.onCommand(LotteryCommand.java:146) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.17.jar:git-Paper-49]

    An other issue we have
    upload_2021-6-26_23-31-54.png 7
    here u see the first time the pot was not drawed because we have 15% - so the next round with old pot starts
    the secound time the pot also was not drawed - so the next round with old pot should start
    now in the 3th round the pot is empty...
    upload_2021-6-26_23-34-11.png
     
  7. Can you please test if the error also comes up if you yourself use the draw command? I still can not reproduce this in any way.
     
  8. last time we didnt had the issue.. its really strange seems only be to reprduce sometime
    We also wied the database for it. may there was an issue because of the old one we used from 1.16.5... well we will keep an eye on it and i can bring back some feedback if we see that issue aggain..

    The other issue:
    - Setup a pot of may 1500
    - buy some times
    - draw the pot (the poi need to be not sold out because of the chance not selling out
    - buy aggain some tickets
    - draw the pot (the poi need to be not sold out aggain because of the chance not selling out
    - result: the pot now is default and all tickets when into are lost.. like a checkpot reset..
     
  9. Hi

    WinCommands:
    Enabled: true
    ExecuteIfOffline: true
    Commands:
    - eco give %player% %money%

    %money% not work, I had try.. %moneygot% ,%moneynotax%,%pot% are not work.

    Is there any way to get the winner's price?

    THX
     
  10. You economy need to be able to sell money to offline player

    The pot self gets automicly to the winner even if he is offline.
    The command are just for extra commands
    If you wanne execute more then just the pot.
     
  11. It is not possible to get any other variables other than the player. Why would you even want to use that? The Plugin already gives out the money with the vault api.
     
    • Agree Agree x 1
  12. My bungee server use MysqlPlayerDataBridge plugin sync money...But player offline can't get winner price.
     
  13. Can you add a config variable to disable/enable the console message: [Lottery] There were no Tickets sold.
    it's spamming my console and I can't stand it anymore :D
     
  14. if you dont want this. then you can disable it by "" the line and also set the prefix to "" ;)
     
  15. [14:59:11 INFO]: Proomp issued server command: /lottery gui
    [14:59:11 WARN]: Exception in thread "Craft Scheduler Thread - 4"
    [14:59:11 WARN]: org.apache.commons.lang.UnhandledException: Plugin Lottery v1.4.4 generated an exception while executing task 1025
    at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    at org.github.paperspigot.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:23)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:68)
    at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:46)
    at me.Nick.Lottery.gui.InventoryManager$1.run(InventoryManager.java:65)
    at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59)
    at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    ... 4 more
     
  16. Hey, the plugin spamming my console with "[Lottery] There were no Tickets sold."
    Please make an config option to enable/disable it because it's kinda unnecessary, Thanks! :)
     
  17. paper 1.17.1, Lottery v1.4.4

    Hello!

    upload_2021-9-23_14-58-35.png

    The %time% ist not shown. In other parts of the messages.yml it functions.

    Ciao, Carsten
     
  18. Its %draw%
     
    • Like Like x 1
  19. um... the papi "second" was not working, only "hour" and "minute" work
    @@ help!

    Code (YAML):
    DrawTime: 60
    UseTimeDraw
    : false
    TimeDrawCheckIntervalSeconds
    : 10
    TimeDraws
    :
    - 00:00:00
    - 06:00:00
    - '12:00:00'
    - '18:00:00'
    GlobalBoughtMessage
    : true
    TicketCost
    : 100.0
    MoneyToPot
    : 100.0
    ExtraInPot
    : 10.0
    Refund
    : 100.0
    TaxesPercent
    : 10
    ServerAccount
    : none
    MinPlayers
    : 2
    BuyCooldownTimeSeconds
    : 3
    EnableChanceNoWin
    : false
    ChanceNoWinIfLessTicketsSold
    : false
    ChanceNoWinPercent
    : 1/200
    NoWinBackToPotPercent
    : 50
    Reminder
    : true
    RemindIntervalSeconds
    : 600
    OnlyOnlineWin
    : false
    LoginWinMessage
    : true
    LoginWinMessageDelayTicks
    : 20
    PerformCommandOnLotteryCMD
    : false
    CommandOnLotteryCMD
    : lottery status
    UpdateCheck
    : false
    Metrics
    : true
    TicketLimits
    :
      Default
    : 50
    BlockedWorlds
    :
    - testworld
    WinCommands
    :
      Enabled
    : true
      ExecuteIfOffline
    : false
      Commands
    :
     - xp 10l %player%
      - eco give %player% %lottery_pot%