Casino Slots
Casino Slots
Casino Slots allows you to easily set up interactive and proper block-based slot machines anywhere in your world. Nearly every aspect of these slot machines can be customized to your needs, including block types, costs and prizes, winning chances and more. The slot machines are compact and elegant, designed to give you large amounts of freedom to sculpt them any way you'd like.
Features
- Animated, block-based slot machines, including audio
- Highly customization
- Tracks statistics
- Costs and prizes supported through practically all economy plugins
- Configurable custom prizes and actions upon winning
- Permissions (superperms)
Commands
For a full list of all commands either go http://dev.bukkit.org/server-mods/casino-slots/pages/info/commands/ or do /casino in game.
Permissions
See http://dev.bukkit.org/server-mods/casino-slots/pages/info/permissions/ for detailed information.
Installation
Just put the CasinoSlots.jar into the server's plugin directory, restart the server (don't /reload), and enjoy.
Note: If you had config files from AnCasino, simple rename AnCasino to CasinoSlots and they'll work.
Configuration
Documentation will be located: http://dev.bukkit.org/server-mods/casino-slots/pages/info/config/ soon
Actions have been defined: http://dev.bukkit.org/server-mods/casino-slots/pages/info/actions/
Video Tutorial
Special thanks to luigi_vampa for making the video!!!
Dependencies
- Vault
- Economy - can be any that are supported by vault
# Instructions for this configuration file can be found at the BukkitDev page:
# http://dev.bukkit.org/server-mods/casino-slots/pages/info/config/
options:
track-statistics: true
allow-diagonal-winnings: true
enable-slot-protection: true
chat:
display-plugin-prefix: true
plugin-prefix: '[Casino]'
plugin-prefix-color: '&c'
chat-color: '&a'
types:
default:
cost: 100
create-cost: 1000
reel:
- 42,21
- 41,12
- 57,7
- 46,3
- 103,9
- 49,4
- 3,5
- 87,5
- 74,8
- 89,12
rewards:
'42':
message: Winner - 3 iron blocks! $175 awarded.
money: 175.0
'41':
message: Winner - 3 gold blocks! $300 awarded.
money: 300.0
'57':
message: Winner - 3 diamond blocks! $750 awarded.
money: 750.0
'46':
action: kill
message: Winne-
money: 0.0
'103':
action: give 103 10
message: Winner - 3 ..melons? Nom.
money: 0.0
'87':
action: fire
message: Winne- Fire hurts! Don't mess with hit.
money: 0.0
'74':
action: drugup
message: Winne- Kids, drugs are bad!
'89':
action: goblind
message: Winne- You can't see now!
money: 0.0
messages:
insufficient-permission: Sorry, you can't play this slot.
insufficient-funds: You can't afford to use this.
in-use: This slot machine is already in use.
no-win: No luck this time.
start: '[cost] removed from your account. Let''s roll!'
help:
- 'Instructions:'
- Get 3 in a row in order to win. $100 per spin.
- '3 iron blocks: $175'
- '3 gold blocks: $300'
- '3 diamond blocks: $750'
- '3 melon blocks: stack of melons'
- Bad blocks = bad things...
actionslot:
cost: 150
create-cost: 1000
reel:
- 46,1
- 89,2
- 74,1
- 87,1
- 103,1
rewards:
'46':
action: kill
message: Winne-
money: 0.0
'103':
action: give 103 3
message: Winner - 3 ..melons? Nom.
money: 0.0
messages:
insufficient-permission: You can't play this one, that's too sad - we really wanted you to win.
insufficient-funds: You can't afford to use this.
in-use: This slot machine is already in use.
no-win: No luck this time.
start: '[cost] removed from your account. Let''s roll!'
help:
- 'Instructions:'
- Get 3 in a row in order to win. $100 per spin.
- '3 tnt blocks: Death!'
- '3 on redstone lamps: You go Blind!'
- '3 melon blocks: stack of melons'
- '3 redstone: Get drugged'
- '3 nether brick: Catch on fire'
@Masonnasty
Post a link to your config.
are you all sure its updated? cause i get this error and i have the latest craftbukkit.
19:33:05 [SEVERE] Error occurred while disabling CasinoSlots v2.15.3 (Is it up t o date?) java.lang.NullPointerException at com.craftyn.casinoslots.util.ConfigData.saveSlots(ConfigData.java:88)
at com.craftyn.casinoslots.util.ConfigData.save(ConfigData.java:55) at com.craftyn.casinoslots.CasinoSlots.onDisable(CasinoSlots.java:44) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoade r.java:362) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManag er.java:399) at com.craftyn.casinoslots.CasinoSlots.onEnable(CasinoSlots.java:60) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232 ) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 19:33:05 [INFO] [CasinoSlots] Loaded 0 slot machines. 19:33:05 [INFO] [CasinoSlots] Loaded 2 types. 19:33:05 [INFO] [CasinoSlots] Loaded statistics for 0 types. 19:33:05 [SEVERE] Error occurred while enabling CasinoSlots v2.15.3 (Is it up to date?) org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register com .craftyn.casinoslots.listeners.AnPlayerListener@7b97ab3 while not enabled at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginMana ger.java:486) at com.craftyn.casinoslots.CasinoSlots.onEnable(CasinoSlots.java:71) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232 ) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Ahm..? XD how work broadcast and tpto?
@kennet789
Good to hear.
@GuildMasterLelo
Correct, was doing more harm than good sadly. I do plan to bring it back and be better.
/casino reload is disabled? When i type /casino reload, it gives me this message: This is currently disabled as it appears to do nothing.
@graywolf336
it works now it was just someting wrong when i used it at 1.2.4 but now it works
@AfroCrafters
Unless they changed some apis, should work just fine
Hey :-) got the plugin to work, it is amazing!
However, as 1.2.5 is out, will this plugin work with the new update or are you updating it as we speak? Thanks,
Jimmy.
@FuSe18
First time I've heard that, what economy are you using?
When you win it does not always reward you even tho it says uve been rewarded. Doesnt give you the money.
@kennet789
Restart your server and then paste the error message that appears in the console when you type that.
How do i use the plugin. When i write /casino add test it comes an error report that say "An internal error occurred while attempting to perform this command" What shall i do?
@graywolf336
Ok thank you very much!
@Golumpa
Hopefully should be, but just stop the server and edit the config then start the server. That's how I currently do it.
@graywolf336
Ok thanks just hope its fixed by the end of the month that is when my server is going up :P
Oh and thank you for the quick replies it shows your dedicated to this plugin!
@Golumpa
My best guess is in the near future, wish I could honestly give you an exact time..
@greywolf336: Well do you know when it will be fixed because i found the same problem in AnCasino which is where i saw you were carrying on his/her work. I was very happy that you are because it is a very good plugin. So all in all do you know when it will be fixed?
@Golumpa It's something that has been known and is in the known caveats.
Hello,
This is a very nice plugin I have only one problem with it though when I start my server and try to change the config settings it seems to reset my whole config to default?... am i doing something wrong or is this just a but that need fixing?