Configuration
Description | Configuration | Customization | Video | Pictures | Forum thread
Below is a copy of the default configuration file with comments explaining the significance of each option.
config.yml
# AnCasino v1.0 # @author: Darazo <[email protected]> # @license: GPLv3 # Whether to track usage statistics or not. Defaults to true. options: track-statistics: true # A slot machines type defines every aspect of it. New types can be added by command in-game, or by simply copying this default type block. types: default: # Cost to use this slot machine type cost: 100 # Whether to use custom permissions for this slot machine. # When a number (#) is defined here #the permission node ancasino.slots.# is required in order to use this slot machine. # 0 indicates no additional permission is required for use. permission: 0 # Blocks that appear in the slot machine reels are defined here. # Blocks are defined by [blockId, number] # Where [number] is the relative chance of this block appearing in the reel. reel: - 42,50 - 41,30 - 57,15 - 103,12 - 49,4 - 46,6 # Rewards are awarded when a blocktype is matched three times horizontally or diagonally on a slot machine. # Every block type defined in [reel] must also be defined here. # [message] is sent to the player upon winning, as is [money] through your economy plugin. # [action] may also be defined for more exciting prizes. Valid actions are: # - give [id] [number] | Gives the player [number] of [id]. # - addxp [number] | [number] of experience points (not levels) is granted to the player. # - tpto [x,y,z] | Teleports the player to given coordinates. Example valid coordinates: -110,45,768 # - smite | Smites the player with lightning. # - kill | Kills the player. # Multiple actions may also be specified. 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 '103': action: - give 103 64 message: Winner - 3 ..melons? Nom. money: 0.0 '49': message: Jackpot - 3 obsidian blocks! $4000 awarded. money: 4000.0 '46': action: - kill message: Winne- money: 0.0 # These messages are displayed to the player at the suggested events. # In addition, the slot's per-use cost is displayed to the player at each use. # Help messages are displayed to players upon right-click of the control block, depending on permissions. 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. start: '[cost] removed from your account. Lets roll!' help: - 'Instructions:' - 'Get 3 in a row in order to win. $100 per spin.' - '3 iron blocks: $250' - '3 gold blocks: $500' - '3 diamond blocks: $1200' - '3 obsidian: $4000' - The rest are surprises # New types added via command appear like this by default. # Customize according to instructions above. newtype: price: 100 permission: 0 reel: - 42,10 - 41,5 - 57,2 rewards: '42': message: Winner money: 100 '41': message: Winner money: 100 '57': message: Winner money: 100 messages: insufficient-funds: Insufficient funds. in-use: In use. no-win: No win. start: Start. help: []
slots.yml
# This configuration file stores all the data relating to your registered slot machines. # [type] specifies the slot machines type, as defined in config.yml # [location describes the reels' physical location in the world. # [world] is the world in which this slot machine is located. # [controller] defines the location for this slot machine's controller block. slots: test: type: default location: - 41,76,246 - 39,76,246 - 37,76,246 - 41,77,246 - 39,77,246 - 37,77,246 - 41,78,246 - 39,78,246 - 37,78,246 world: world controller: 39,75,247
When I Change the .yml and that reload, why still going default settings pls fix that
-Sorry for bad english,in Turkey :)
here is log
Zeile 45012: 2013-06-12 10:55:58 [SEVERE] Reached end of stream Zeile 44035: 2013-06-12 08:19:41 [SEVERE] Cannot load plugins/AnCasino/config.yml
I can't add my own sort of slots? How come?
@Qustom123
I have same problem