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.
-
View User Profile
-
Send Message
Posted Dec 19, 2011@Zombiemold
Custom rewards and reels are available on a per slot machine basis as of v1.1.2, have a look at the configuration page for details.
@TTlabambaTT
Only money is currently supported. I might make the economy portion optional in the future, though. Refer to the previous few comments regarding your other question.
@bobbysmithyy
Haven't gotten around to it yet. I'll get to it eventually~
-
View User Profile
-
Send Message
Posted Dec 19, 2011Is the source setup yet? If so may I see a link because this is a great plugin I would love to see the code.
-
View User Profile
-
Send Message
Posted Dec 19, 2011question 1. does this allow using a specific item instead of money. question 2. can you set an owner so the money goes to them when someone activates a slot machine?
-
View User Profile
-
Send Message
Posted Dec 19, 2011@darazo
I understand, it's a complex plugin, and things need to be done just right. Admin controlled casinos are still pretty damn cool. Just curious to see how possible it was.
I think a more important suggestions would be for percent based payouts. I like the idea of having cheaper slot machines, and expensive ones. Problem is, they all payout the same, so no one in their right mind would play an expensive one, if there was a cheaper one. Payouts based on the charge per spin would be awesome! Also, using levers to trigger the slot machine would also be cool.
Basically, mimicing real casinos :D
(btw, just convinced 2 additional servers to use your plugin)
-
View User Profile
-
Send Message
Posted Dec 19, 2011@Zombiemold
While I think player-owned casinos is a neat idea, I haven't been able to find a good way to implement it yet. The main issue is configuration of rewards and reels for such slot machines, as I think it is too complicated for a player to be able to properly do it though in-game commands. It is something I would like to add, however.
@lawliet555
Statistics are tracked by default. Just have a look at /casino stats for global usage statistics.
@bobbysmithyy
Sure. I'll see if I can get one set up.
-
View User Profile
-
Send Message
Posted Dec 18, 2011Source code on github?
-
View User Profile
-
Send Message
Posted Dec 18, 2011Does this allow you to take the credits from the players and transfer them over to the owner of the casino, and in doing that take the credits from the casino owner's iconomy account and give them to the winners as well. I would like to be able to keep track of how iconomy currency the players on the server i am on spend at the casino and how much they loose / win.
Thx
Sayomie
-
View User Profile
-
Send Message
Posted Dec 18, 2011This plugin is amazing well crafted. It's absolutely beautiful, and added TONS of fun to my server. I can't thank you enough.
I have an awesome idea for you, later down the line, and only if it is something you are interested in.
The idea: Allowing normal users to buy slot machines. All profits and losses are inherited by the owner. This would be a great, simple way to make servers with Towny, Factions, or any system similar to invest to bring in revenue to their towns and such.
Anyways, just an idea. The first thing my server asked was "Can we invest in our own casinos for our towns?" so I though I would run it by you.
-
View User Profile
-
Send Message
Posted Dec 18, 2011@caidcurse
The new version is not not up yet, as it has to be approved before being available for download. It should be up shortly.
-
View User Profile
-
Send Message
Posted Dec 18, 2011cheers! This plugin has me quite excited.
and 2011-12-18 08:35:03 [WARNING] Task of 'AnCasino' generated an exception java.lang.ArrayIndexOutOfBoundsException: 2 at me.darazo.ancasino.SlotManager.executeAction(SlotManager.java:160) at me.darazo.ancasino.SlotManager.sendReward(SlotManager.java:136) at me.darazo.ancasino.SlotManager$6.run(SlotManager.java:232) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 2011-12-18 08:35:03 [WARNING] Task of 'AnCasino' generated an exception java.lang.ArrayIndexOutOfBoundsException: 2 at me.darazo.ancasino.SlotManager.executeAction(SlotManager.java:160) at me.darazo.ancasino.SlotManager.sendReward(SlotManager.java:136) at me.darazo.ancasino.SlotManager$6.run(SlotManager.java:232) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) latest thing, same as the last one, unfortnately.
-
View User Profile
-
Send Message
Posted Dec 18, 2011@caidcurse
Ah, right you are. It seems I neglected to update that bit when I switched to the givexp method that actually works. Uploading a fix (version number will still be v1.1.2).
-
View User Profile
-
Send Message
Posted Dec 18, 20112011-12-18 05:59:54 [WARNING] Task of 'AnCasino' generated an exception java.lang.ArrayIndexOutOfBoundsException: 2 at me.darazo.ancasino.SlotManager.executeAction(SlotManager.java:161) at me.darazo.ancasino.SlotManager.sendReward(SlotManager.java:137) at me.darazo.ancasino.SlotManager$6.run(SlotManager.java:233) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 2011-12-18 06:01:26 [INFO] [iConomy] hooked into Permissions. 2011-12-18 06:02:10 [WARNING] Task of 'AnCasino' generated an exception java.lang.ArrayIndexOutOfBoundsException: 2 at me.darazo.ancasino.SlotManager.executeAction(SlotManager.java:161) at me.darazo.ancasino.SlotManager.sendReward(SlotManager.java:137) at me.darazo.ancasino.SlotManager$6.run(SlotManager.java:233) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
I got this after adding the - addxp action to the slots. Any ideas?
-
View User Profile
-
Send Message
Posted Dec 17, 2011ok ty
-
View User Profile
-
Send Message
Posted Dec 16, 2011@lester695
When editing the config file, you need to use the /casino reload command, not /reload.
-
View User Profile
-
Send Message
Posted Dec 16, 2011dunno why, but everytime i reload the server, it resets the config file to default.
i want to change the amount of coins people win, but everytime i reload it resets to the default values. can you help me out?
-
View User Profile
-
Send Message
Posted Dec 16, 2011@PunJedi
Thank you for your support. Do let me know if you discover any bugs in the new version. I have added a Donations section in the description for anyone who wishes to give their hard-earned money to some guy on the internet.
-
View User Profile
-
Send Message
Posted Dec 16, 2011Thank you! You still need a Donation button somewhere on your site.
And you were right, I had changed a reel and forgot to update the slots. After I cleaned it up we seemed to be fine on reboots again.
Thank you for the updated, installing now
-
View User Profile
-
Send Message
Posted Dec 15, 2011@buildsomethinfool
This appears to be a problem with your permissions plugin. Make sure to update both vault and pex.
@PunJedi
That doesn't sound right. The config file is written to disk instantly upon slot creation. I can only imagine that someone edited the config manually, and thus overwrote the slots being added. In the next version, slot machines will be listed in a separate config file, which can help prevent issues such as these.
-
View User Profile
-
Send Message
Posted Dec 15, 2011i get this console error http://pastebin.com/RLV1F2eg trying to type any command
-
View User Profile
-
Send Message
Posted Dec 14, 2011Alright. After a full 24 hours of running we have found one issue.
It seems on a full server restart it doesnt always pick the slots placed. Didn't happen with an in game server reload, but on a full reboot we log in and find that the slots aren't working or registered any longer.
About an hour ago we did another reboot, and 4 out of 14 slots were still registered and working. :)
Using a ton of plugin but it didnt feel like a conflict, but more like a persistence or possibly on reboot it is overwriting the log?
Just a heads up, and btw, it has become one of the most popular plugins on our server, and I can't find a Donate button for you :)