AnCasino
Description | Configuration | Customization | Video | Pictures | Forum thread
AnCasino
In all my time of playing Minecraft I have seen a great many things. But I have never seen any proper slot machines. Troubled at this fact, I set out to put together the definite plugin for all your gambling needs, all in the comfort of your own Minecraft server.
AnCasino 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.
Beta
Want to help test the upcoming rewrite of AnCasino? Head over to the beta page for downloads and more information!
Features
- Animated, block-based slot machines, including audio
- Highly customizable
- Tracks statistics
- Costs and prizes supported through practically all economy plugins
- Configurable custom prizes and actions upon winning
- Permissions (superperms)
Video
AnCasino plugin introduction video
Commands
- /casino add <name> (<type>) - add a new slot machine of the (optionally) specified type
- /casino edit - edit slot machines and types
- /casino list - list all existing slot machines
- /casino reload - reload the configuration file from disk
- /casino remove <name> - remove a slot machine
- /casino stats - view global usage statistics (if recorded)
- /casino types - type management
Permissions
- ancasino.use - Allows you to use all slot machine types
- ancasino.use.<type> - Required to use a specific type
- ancasino.create - Allows for player-creation of slot machines
- ancasino.manage - Allows for creation of managed slot machines
- ancasino.admin - Everything else
Usage
Follow the command guide above to set up your first slot machine. When creating a slot machine, you will define a control block with which the slot machine is controlled. Punch this block to play the slots, and right click it for more information. Players with the ancasino.admin permission node will see usage statistics upon right-click, while users without will see your custom help text.
Upon punching, the player will be deducted the play-cost and the slots will spin. Achieve 3 in a horizontal row to win the price! Prizes are dispensed depending on the winning block and your custom configuration, as well as a hearty victory fanfare should you win.
Installation
Simply drop AnCasino.jar in your server's plugin directory. Config files will be automatically generated upon server reload. Make sure to also fulfill dependencies outlined below.
Configuration
See the configuration page for more information about the config file, and the customization page for a more detailed tutorial on customizing your slot machines.
Dependencies
Depends on Vault for permissions and economy support. An economy plugin of your choice is also required.
Source Code
Donations
Should you wish to tip this humble maker of casinos, you will find a 'Donate' button in the top right of your screen, just above the search bar.
I made a casino with food, but when the slots line up, it broadcasts the message that you won, but doesn't give you the item. I already checked it in the YAML paster, and it gave me no error. My code: http://pastebin.com/VLHY95Y9
@MinecraftHerpyDerp
Which version are you using? And don't ever /reload a server, always stop it and restart it!!! See why here: http://forums.bukkit.org/threads/43212/ I will soon be adding a /casino reload to reload the configuration currently the coding has it save what is in the memory and then load it up again which then removes the changes you did.
@drumming102
Yes you can't edit it while the server is running and then do a /reload command because of how the current coding is. The best way is to stop the server and remove the AnCasino.jar from the plugins folder, edit the config file and then put the AnCasino.jar back in and load the server up. Like I mentioned above, I do plan on adding a command to reload the config from file.
@drumming102
That means that something is wrong in your config file at line 167.
And after I shut it down and then edit them I am getting this on start.
01.03 11:30:48 [Server] INFO [Casino] Loaded statistics for 0 types. 01.03 11:30:48 [Server] INFO [Casino] Loaded 2 types. 01.03 11:30:48 [Server] INFO [Casino] Loaded 0 slot machines. 01.03 11:30:48 [Server] INFO ^ 01.03 11:30:48 [Server] INFO action: - give 322 1 01.03 11:30:48 [Server] INFO in "<string>", line 167, column 17: 01.03 11:30:48 [Server] SEVERE Config file plugins/AnCasino/config.yml isn't valid! sequence entries are not allowed here 01.03 11:30:48 [Server] INFO [AnCasino] Loading AnCasino v2.1.1.
and then it just resets to a default config
Also is there future plans to let them play with items?
We are thinking of an EXP wheel that charges lapis blocks (Since it's so useless)
@graywolf336
Not sure if I catch you grey You said my problem is editing while it is Installed.
Do you mean while the server is running?
I didn't change configuration. Only added 'ancasino.use.*' to permissions and no matter what I do, the users can't use the slot machine ('Don't have permissions to...'). When I change config file and reload the server or plugin, it overwrites file do default. This error generates in console after playing the slot game: 19:01:47 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.StopRotateTask.run(StopRotateTask.java:2 7) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:48 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.StopRotateTask.run(StopRotateTask.java:2 7) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:49 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.StopRotateTask.run(StopRotateTask.java:2 7) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:50 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.ResultsTask$1.run(ResultsTask.java:152) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:50 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.ResultsTask$2.run(ResultsTask.java:157) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:50 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.ResultsTask$3.run(ResultsTask.java:162) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:50 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.ResultsTask$4.run(ResultsTask.java:168) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:51 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.ResultsTask$5.run(ResultsTask.java:173) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 19:01:51 [WARNING] Task of 'AnCasino' generated an exception java.lang.NoSuchMethodError: org.bukkit.Note.<init>(BLorg/bukkit/Note$Tone;Z)V at me.darazo.ancasino.slot.game.ResultsTask$6.run(ResultsTask.java:178) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Sorry for my english. I don't know what to do. I am uspest. My users are upsest :/
Not sure about your guy's servers but on my server I've had people asking me if they can get slot machines in their towns, at first I was like sure and put one in. But then they asked me if there was any way of getting the money that it was making and go towards their towns, so I figured yeah there are the managed ones. I made one and it said "sorry you can't play, it doesn't have enough funds in it" so I looked and looked in the code for a way to deposit money and there was none. I set out to do that and so I'm happy to say that managed slots work better in my most recent update! There is now /casino withdraw/deposit/setowner!!! :)
Download the latest one at: https://github.com/downloads/graywolf336/AnCasino/AnCasino211.jar
edit Also I looked into the permissions and for those who understand code here's the line.
Which, for those who can't understand it, that says if the player has the permission ancasino.use.<name> where the <name> is the name of the type of the slot machine and is case sensitive.
@drumming102 Do you edit the config file while the plugin is installed? If so, then that's why. The more I look into the code the more I fix. For example previously when the server was getting shut down the managed slots wouldn't save the amount that was in them but I found out why and changed that. I do plan on adding a command that will let you reload the configuration file.
@GoldenWrapper I've fixed it in my newest version.
Is the custom casino glitch ever going to be fixed like @drumming102 's? I really want to make my own custom food casino. Config: http://pastebin.com/HNMzxKhG
Grey where is the file that fixes the config editor? Everytime the server gets restarted (daily) or plugins reloaded the config file RESETS.
and after I cange the config manually I can;t get it to apply to the casinos.
@landontc
Try and combine it with what I mentioned below about the types being a node.
ancasino.use.* does not seem to work for me (using PEX)
@Cubanrevel
Try adding ancasino.use.* and tell me if that works, I haven't looked at the permissions part of the plugin yet...hopefully that works.
@ graywolf336
I have done everything on my hand to make this plugin work again like it use to. am I doing anything wrong here, this are my config:
This are my an casino config folder
config.yml http://pastebin.com/faVxQr5L
Slot.yml http://pastebin.com/sKA5mbBb
My PermissionEX http://pastebin.com/KifNWvED
I got setup three other type of Slots machine they only work you are an OP, if you are not an OP even giving the permissions like you describe ancasino.use.<type> still not work
Please help, My players ask me every day when is the casino going to open
Thank you in advance Cubanrevel
For those who don't feel like going to the other pages to get my download link, go here: https://github.com/graywolf336/AnCasino/downloads note: it doesn't have my latest fix for /casino type add <name>
@Passerby98
Sorry I haven't replied all, but yes the author the original plugin did change the permissions. Users who want to play it have to have the permission node:
Where <type> is the name of the type. For example, say you want users to be able to player the default slot. This requires them to have the permission node "ancasino.use.default".
I'll probably update the wiki on my github page to be more readable, but for those who can understand it now: https://github.com/graywolf336/AnCasino/wiki
Also for those having problems with the /casino types new <type>, I think I may have found the issue there..currently working on that will post the link again when it's working correctly :).
@dunem666
what are your nodes for it?
works great using group manager
Without op, users cannot use slot machine..
@luigi_vampa
Yep same for me, each type must be in permissions. default: ancasino.use.<TYPE> EXAMPLE: ancasino.use.default
About the permissions:
I've been trying this one for days!
Using CB 1.1 R4, AnCasino 2.0 (graywolf's update) and permissionsBukkit 1.2 the wildcard permissions weren't allowing anyone other that ops to use the machines. They are getting access by explicitly defining all the machine types ie.
ancasino.use.itemslots: true
ancasino.use.cashslots: true
etc, etc.
Worked for me anyway.