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.
Can anyone help me? Whenever people try to use my machines, it tells them that they don't have permission. Below is my config file please just tell me what to change. (Im newer to creating plugin servers, so please be gentle with the techie stuff.) :D
track-statistics: true allow-diagonal-winnings: false enable-slot-protection: true chat: display-plugin-prefix: true plugin-prefix-color: '&c' chat-color: '&a' types: default: cost: 150 create-cost: 1000 reel: - 42,30 - 41,20 - 57,15 - 46,10 rewards: '42': message: Winner - 3 iron blocks! $250 awarded. money: 250.0 '41': message: Winner - 3 gold blocks! $500 awarded. money: 500.0 '57': message: Winner - 3 diamond blocks! $1200 awarded. money: 1200.0 '46': action: kill message: Winne- money: 0.0 messages: insufficient-funds: You can't afford to use this. in-use: This slot machine is already in use. no-win: No luck this time. no-permission: You don't have permission to use this. start: '[cost] removed from your account. Let''s roll!' help: - 'Instructions:' - Get 3 in a row in order to win. $150 per spin. - '3 iron blocks: $250' - '3 gold blocks: $500' - '3 diamond blocks: $1200' - '&cColor codes may be used in all messages like this.'
I just got the plugin yesterday and it worked fine. Today it's not even turning on!
My error:
[AnCasino] Enabling AnCasino v2.0-b1-0.6 16:43:12 [SEVERE] Error occurred while enabling AnCasino v2.0-b1-0.6 (Is it up to date?) java.lang.NullPointerException at org.bukkit.Location.getBlock(Location.java:82) at me.darazo.ancasino.slot.SlotData.getBlocks(SlotData.java:141) at me.darazo.ancasino.slot.SlotData.loadSlot(SlotData.java:124) at me.darazo.ancasino.slot.SlotData.loadSlots(SlotData.java:80) at me.darazo.ancasino.util.ConfigData.load(ConfigData.java:44) at me.darazo.ancasino.AnCasino.onEnable(AnCasino.java:63) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Can the cost and prize be blocks or items? I dont have an economy plugin, nor do i want one.
@graywolf336
update it please!
@chrisman0091
yes - would be nice :)
Can you update this by any chance?(:
How do i add funds to a managed casino?
@graywolf336
CasinoSlots is broken like all hell
:o wow people still use this... Everyone go use CasinoSlots, it's the exact same plugin except under a new name.
EMERGENCY: I have some problems.... Even if I add the permission for members in Group Manager, we still need to be an admin tu use slot machines..... HOW I FIX THAT ? thanks :)
Please update! this plugin is great.
Update to 1.4.7 and 1.5 Plz
@dunem666
Works w/1.4.7 but is a little glitchy.
Here throw this in your config AFTER you STOP your server. then paste this in and re-start server.. WORKS fine..
@krisukun
the 1.1 build runs perfectly without bukkit.
Someone still using this? o.O
There are a new version of AnCasino, continuated by other user, check CasinoSlots
it work but i get an error when i use the casino and you cant change the config
Works on 1.4.7, tested.
@ogr93 does it really
none of the commands worked on my server
Crashes on 1.4.7