A blackjack plugin for minecraft
maximus-f / blackjack Goto Github PK
View Code? Open in Web Editor NEWA blackjack plugin for minecraft
A blackjack plugin for minecraft
Players can take items out of the end GUI, server is 1.18.2 papermc, everything was working fine until I configured the names and things in config.yml, I restarted the server and now the players can take items out of the gui once they finish playing. maybe add an option to disable the play again gui at the end, instead players must run the command again to play again? I hope you can fix the problem as this plugin is great! I think perhaps this is a bug or not support for 1.18.2 however it was working fine before config change.
Are there any plans for an update with the 1.19.4? :-)
We noticed that in the gui where you can define the beat
There the sunflowers stand for -1000 -100 -10 +10 +100 and+1000
Our eceonomy works with much lower values. 1000 is very much there allready.
so we settet the beat limit currently to 31
So this result at the moment that a player can press 3 times the +10 or -10 but the othes are useless and suggest them they could higher by 100 or 1000
The game startwith beat to 1.0
So it would be nice for use if we could define the highering of the beats in config.
This is how it could look in config:
Beats:
IncreaseValue1: 1000
IncreaseValue2: 100
IncreaseValue3: 10
DecreaseValue1: 10
DecreaseValue2: 100
DecreaseValue3: 1000
So we could define it like
Beats:
IncreaseValue1: 1
IncreaseValue2: 10
IncreaseValue3: 0.1
DecreaseValue1: 0.1
DecreaseValue2: 1
DecreaseValue3: 10
What would result in seeing at the sunfolowers
like: -10 -1 -0.1 +0.1 +1 +10
Could you add this? <3
When i start a round Blackjack the it prints like may 15 empty lines to chat.
This is not so good if you still wanne follow the Chat.
Hello there, it seems like the current source code version is 1.5.3 and the latest on spigot is 1.6.2. The reason why i want the source code is because i want to edit some in it to make it more compatible with Vietnamese players (im making a vietnamese minecraft server) and of course it totally a private plugin, all credits will be kept. Thank you. Have a nice day
I'm a Vietnamese student and my english still not good at all, sorry about that.
This error sometimes accour when a player tried to start a game.
Ingame he sees that a syntax error has been accours.
Sometimes this happens if an other player opened a game before but has not finished it.
We home you can fix this issue.
If this happens once then the error remains with every ttrie unti the plugin is reloaded or the server restarted
Server: PaperSpigot 1.16.2 - BlackJack Plugin version 1.6.2
>.... [23:21:08 INFO]: Blueeyestar issued server command: /Blackjack 1
>.... [23:21:08 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'blackjack' in plugin Blackjack v1.6.2
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.chat(PlayerConnection.java:1810) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.craftbukkit.v1_16_R2.entity.CraftPlayer.chat(CraftPlayer.java:464) ~[patched_1.16.2.jar:git-Paper-174]
at me.messageofdeath.commandnpc.Listeners.NPCListener.onClick(NPCListener.java:152) ~[?:?]
at me.messageofdeath.commandnpc.Listeners.NPCListener.onRight(NPCListener.java:56) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor982.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.2.jar:git-Paper-174]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.2.jar:git-Paper-174]
at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java:492) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor409.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.2.jar:git-Paper-174]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:2078) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[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.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.a(MinecraftServer.java:1264) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:999) ~[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(Thread.java:748) [?:1.8.0_242]
Caused by: net.minecraft.server.v1_16_R2.CancelledPacketHandleException
>.... [23:21:08 INFO]: Blueeyestar issued server command: /Blackjack 1
>.... [23:21:08 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'blackjack' in plugin Blackjack v1.6.2
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.chat(PlayerConnection.java:1810) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.craftbukkit.v1_16_R2.entity.CraftPlayer.chat(CraftPlayer.java:464) ~[patched_1.16.2.jar:git-Paper-174]
at me.messageofdeath.commandnpc.Listeners.NPCListener.onClick(NPCListener.java:152) ~[?:?]
at me.messageofdeath.commandnpc.Listeners.NPCListener.onRight(NPCListener.java:56) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor982.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.2.jar:git-Paper-174]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.2.jar:git-Paper-174]
at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java:492) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor409.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.2.jar:git-Paper-174]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:2078) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[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.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.a(MinecraftServer.java:1264) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:999) ~[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(Thread.java:748) [?:1.8.0_242]
Caused by: net.minecraft.server.v1_16_R2.CancelledPacketHandleException
>.... [23:21:08 INFO]: Blueeyestar issued server command: /Blackjack 1
>.... [23:21:08 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'blackjack' in plugin Blackjack v1.6.2
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.chat(PlayerConnection.java:1810) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.craftbukkit.v1_16_R2.entity.CraftPlayer.chat(CraftPlayer.java:464) ~[patched_1.16.2.jar:git-Paper-174]
at me.messageofdeath.commandnpc.Listeners.NPCListener.onClick(NPCListener.java:152) ~[?:?]
at me.messageofdeath.commandnpc.Listeners.NPCListener.onRight(NPCListener.java:56) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor982.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.2.jar:git-Paper-174]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.2.jar:git-Paper-174]
at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java:492) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor409.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.16.2.jar:git-Paper-174]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:2078) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:49) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[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.executeAll(IAsyncTaskHandler.java:95) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.a(MinecraftServer.java:1264) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:999) ~[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(Thread.java:748) [?:1.8.0_242]
Caused by: net.minecraft.server.v1_16_R2.CancelledPacketHandleException
Caused by: java.lang.UnsupportedClassVersionError: me/perotin/blackjack/Blackjack has been compiled by a more recent version of the Java Runtime (class file version 64.0), this version of the Java Runtime only recognizes class file versions up to 61.0
[00:24:51 ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'Blackjack_1.7.1.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/perotin/blackjack/Blackjack has been compiled by a more recent version of the Java Runtime (class file version 64.0), this version of the Java Runtime only recognizes class file versions up to 61.0
like many other servers we are only at java 17 for the moment (61.0)
So it would be nice if 1.7.1 could be recompiled for java 17 (that most 1.19.x or higher servers have)
When I run any /blackjack
or /blackjackadmin
command I receive a NullPointer error with an unhandled exception. The plugin randomly stopped working after playing a couple of games.
I also can't change the $ symbol for the value underneath the change-bet-amount
message.
is it possible to add decimal (one or two) values support for the increase and decrease buttons like 0.5 1.5 or 5.5?
i wanne use something like this:
# Sunflowers that are used to increase/decrease the bet value in menu
bet-modifiers:
increaseValue1: 0.5
increaseValue2: 1.0
increaseValue3: 3.0
decreaseValue1: 0.5
decreaseValue2: 1.0
decreaseValue3: 3.0
currently if i define this the GUI shows me -3 -1 0 +0 +1 +3 when i do this for the buttons.
so i switched it for now to 1 3 9
it would make sense because the win and beat windows allready shows 1 decimal after the full value
by the way.. where this format is comming from $10.0 i was looking in the files and cant find a format like this with this $ infront of the value.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.