Blackjack
Blackjack allows you to play blackjack in Minecraft!
This plugin requires Vault and ImageOnMap.
Features
- Playing blackjack with up to five players at one table without any commands
- The plugin uses maps as card-items
- Inventories are saved and restored after leaving the table
- Changing your stake
- Command to teleport to the next free table
- Automatically generated and protected tables including the dealer
- Setting table limits and minimums
- Command to change the table's blocks or color
- VIP tables
- Adding VIPs via command or permission
- Permissions
- Automatic update check and download (You can disable both individually in the config.)
- Localisation
Video Tutorials
English tutorial by VariationVault
Portuguese tutorial by AbsintoJ
How to play
- Right-click on a free sign with 'New Game' to join the table with the minimum stake.
- Right-click on the face-down card next to the dealer to draw a card.
- You are able to double or split by clicking on one of the two signs.
- If you don't want any more cards, right-click on a block of the table.
- After all players are finished, the dealer draws his cards and the round ends.
- To join the new round right-click on your sign again.
- You can higher and lower your stake step by step by clicking on the sign to the left of the dealer.
Installation and configuration
- 1. Copy "Blackjack.jar" in your server's plugin folder.
- 2. The config.yml will be saved. The options are explained in the file.
- 3. Use "/bj setup" to generate and save the playing cards to new maps.
Do not use or create cards on the whole server while generating!
Your gamemode may change to survival. You cannot die or pickup items until the process is finished.
- 4. After generating the cards, you can create a new blackjack table with "/bj create".
You can create a table with a specific name by typing "/bj create <name>".
You can create a VIP table by typing "/bj createvip (<name>)".
Commands
Player Commands
You can use "/blackjack", "/bj" and "/sbj" to perform Blackjack commands.
/bj help ([page]) - Opens the Blackjack help on the specified page.
(Alias: 'h', '?')
/bj join - Teleports you to the first table with a free seat.
(Alias: 'j')*
/bj teleport [tablenr or tablename] - Teleports you to the specified table.
(Alias: 'tp', 't' or type '/bj [tablename or tablenr]')
/bj stake [stake] - Changes your stake for the next round. You can see your stake in the second line of your sign.
(Alias: 'setstake')
/bj viplist - Displays the VIP list.
(Alias: 'vip', 'vips')
/bj isvip [player] - Checks if a player is VIP.
Admin Commands
/bj reload - Reloads the config and the VIP list.
/bj cleardata - Deletes the data.yml containing all tables.
/bj setup - Downloads the cards when you use the plugin for the first time.
/bj create - Creates a new table named 'Table<nr>'.
/bj create [name] - Creates a new table with the specified name.
/bj createvip ([name]) - Creates a new VIP table named 'Table<nr>' or with the specified name.
(Alias: 'vipcreate', 'viptable')
/bj undo - Undo creating the last table. (Restores all blocks.)
/bj delete - Deletes the table in front of you.
(Alias: 'del','remove','rem')
/bj forcedelete - Forces the deletion of the table in front of you. (If the table is corrupted and the normal deletion fails.)
/bj togglevip ([Tablename]) - Add/Remove VIP status to/from the table you're standing or the table with the specified name.
(Alias: 'toggle', 'viptoggle')
/bj setlimit [limit] - Sets the table limit. Set it to 0 for no limit.
(Alias: 'setmaximum')
/bj setminimum [limit] - Sets the table minimum to the specified value and the table limit to <limit*multiplier>.
/bj color [colorname or colorID] - Colors the table you're standing. The colorIDs are the data values of wool blocks.
(Alias: 'setcolor')
/bj setblock [ID] ([data]) - Sets the ten blocks of the table to the specified block. You can separate ID and data with a ':'.
/bj setwall [ID] ([data]) - Sets the wall behind the table to the specified block. You can separate ID and data with a ':'.
/bj addvip [Player] - Puts the player on the VIP list.
/bj removevip [Player] - Removes the player from the VIP list.
(Alias: 'remvip', 'deletevip', 'delvip')
/bj invclear - Clears your inventory.
/bj getcard [card] ([count]) - Gives you the the specified card. Only use the first letters from the card. E.g. 'HA' (Heart Ace) or 'D8' (Diamond 8 )
/bj restoreall - Restores all player inventories after a crash.
Permissions
Default permissions
- blackjack.play - Permission to play blackjack
- blackjack.stake - Permission to change your stake ("/bj setstake")
- blackjack.teleport - Permission to teleport to a table ("/bj [number]")
- blackjack.viplist - Permission for "/bj vips" and "/bj isvip [Playername]"
Admin permissions
- blackjack.* - All Blackjack permissions
- blackjack.setup - Permission for "/bj setup"
- blackjack.create - Permission for creating normal tables ("/bj create")
- blackjack.delete - Permission for removing tables ("/bj delete")
- blackjack.forcedelete - Forces deleting a table if normal deletion fails. ("/bj forcedelete")
- blackjack.edit - Permission for editing tables ("/bj setlimit", "/bj setmaximum" and "/bj setminimum")
- blackjack.color - Permission to change a table's color ("/bj color")
- blackjack.setblock - Permission to change a table's block IDs and data values ("/bj setblock" and "/bj setwall")
- blackjack.getcard - Permission for "/bj getcard"
- blackjack.invclear - Permission for "/bj invclear"
- blackjack.reload - Permission for "/bj reload"
- blackjack.restoreall - Permission for "/bj restoreall"
- blackjack.vip - Permission to play at VIP-tables
- blackjack.managevips - Permission for managing VIPs ("/bj addvip" and "/bj removevip")
- blackjack.createvip - Permission for creating VIP-tables ("/bj createvip" and "/bj togglevip")
- blackjack.cleardata - Permission to delete the data.yml ("/bj cleardata")
To do
- Adding Spigot compability
Do not destroy or edit any table blocks with WorldEdit or similar plugins!
It will cause corrupted tables and server errors!
Thanks to ZioBlack97 for the Italian translation, you are awesome ;)
Feel free to contact me by PM if you have an idea or if you found a bug.
You can also correct my bad English (I'm German). :D
I want to add more languages to my plugin, it would be nice if someone helps me with the translations. ;)
It would be nice to see my plugin in action on a real server (not my 4-slot plugin test server :D ), so if you use my plugin, you can send me your server IP if you want.
All my work is free, but you can support me if you want.
@keough99
no it do not work, i throws out error while enbling it
UPDATE TO 1.8 PLS!
This plugin work for minecraft 1.8 spigot and when will this be update? Any source code so we can update this on our own?
A very cool plugin! However, i strongly prefer using items as money such as emeralds. It would be cool if you could configure whether you want to use vault currency or item based currency. That way this plugin could easier adapt to different kinds of servers, such as mine for example. I would love to bet my emeralds that i bring to the table instead of virtual money... I hope this is possible and that you'll consider it!
Thanks
I have the same problem of Liger_XT5... the plugin created all the cards but when i try to create a table the results are in the following error: I very need this plugin... and i saw that is a nice plugin... Can the developers fix this problem? Thank you so much for your work!
[23:19:44] [Server thread/INFO]: LigerXT5 issued server command: /bj create [23:19:44] [Server thread/ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'bj' in plugin Blackjack v1.2.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:646) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_31] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_31] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31] Caused by: java.lang.IllegalArgumentException: Cannot spawn hanging entity for org.bukkit.entity.ItemFrame at Location{world=CraftWorld{name=DenPlugins},x=-401.0,y=73.0,z=5003.0,pitch=89.4,yaw=88.04857} at org.bukkit.craftbukkit.v1_8_R1.CraftWorld.spawn(CraftWorld.java:1070) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at org.bukkit.craftbukkit.v1_8_R1.CraftWorld.spawn(CraftWorld.java:837) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] at am.progr.schmailzl.Blackjack.Blackjack.createFrame(Blackjack.java:1599) [?:?] at am.progr.schmailzl.Blackjack.Blackjack.create(Blackjack.java:1491) [?:?] at am.progr.schmailzl.Blackjack.Blackjack.onCommand(Blackjack.java:539) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [Spigot.jar:git-Spigot-8c3dd1f-ee6d0fa] ... 14 more
Does this still work in 1.8 spigot? It doesn't show anything when I add it in (doesn't load, no errors)
@Liger_XT5
I have the same problem running Spigot 1.8.3 :( was so looking forward to being able to use this plugin.
Wo. Nice plugin!
@adamk523
I tried to fix the issues with Spigot but actually I couldn't reproduce the problems. I tried a lot of plugins and Spigot versions but everything worked fine for me. A lot of people have problems with my plugin and I know that Spigot causes the errors, but I don't know how and why. You should just try if it works and I'm sorry if it doesn't.
I didn't work on this plugin for a few months now because I'm really busy at the moment.
Maybe I will try to fix the problems again in a few months on the newer Spigot 1.8 versions.
@Liger_XT5 I'll contact you via pm.
Any chance you can fix this for Spigot 1.7.9-R0.2? I waited and waited for over a year to use it, and when I finally updated to 1.7 and remembered this plugin, it doesn't work with Spigot. :'( So sad...
Not entirely sure what's going on, but creation of a table results in the following error. I thought it might have to do with Worldguard or Towny, but neither is. Spigot 1.8.1
Hey I made a tutorial if you want one!
Video: https://www.youtube.com/watch?v=OuUK2DKM3Jk&feature=youtu.be
help me pls. no create cards ty
http://pastebin.com/Fu5Y04ni
my skype is potre32
@MrPumpkin101
I found the bug and fixed it in v1.2.1 :D
@__PM__
I use Vault/Essentials Eco. Also I use MultiEco for multiple world money.
@EliteRMWar
I never thought about that, but I'm very busy at the moment. Maybe I have time to fix this in the next two weeks. :D
Video Tutorial on the Plugin
http://youtu.be/xaTJ83Q_h7M
Credits Video: (AbsintoJ/Blackjack)
How about support for plugins that use blocks/objects as currency. For example my server (still a work in progress) uses the plugin GoldIsMoney so the actual money is gold nuggets, ingots, and blocks. When you using a plugin like that and this plugin you cannot play consecutive games (unless you win) and you don't keep any money you earn... Other than that great job and keep up the good work!
@andreacampani
You have to set the 'enUS' in the config to 'itIT' :D
how select Italian language?