ItemSlotMachine

What is it?
ItemSlotMachine adds realistic slot machines with item frames as reels to your server. Each slot machine has its own jackpot (money and/or items) which increases with every spin.
Features
- Create and manage multiple slot machines
- Create and manage your own slot machine designs (default design is built-in)
- Customize each slot machine individually
- Display statistics of slot machines and players
- Create coin shops for players
- Customize all plugin messages
All listed features above are always referring to the newest version of ItemSlotMachine!
Metrics
This plugin uses Metrics by BtoBastian to collect various data from servers.
If you don't want Metrics to collect your data you can disable it easily by setting enabled to false in the config file at plugins/bStats/
Upcoming features
- Support for larger numbers on signs
- Customizeable sign layout and with more placeholders (for example <player>)
Commands & Permissions:
| Command | Description | Permission |
| /design wand | Gives the player a design wand | itemslotmachine.command.design.wand |
| /design create [name] | Creates a new design from your selection | itemslotmachine.command.design.create |
| /design remove <name> | Removes an existing design | itemslotmachine.command.design.remove |
| /design list | Displays a list of all available designs | itemslotmachine.command.design.list |
| /design invert <name> | Inverts the item frame order of a design | itemslotmachine.command.design.invert |
| /design reload [name] | Reloads all designs or a single design | itemslotmachine.command.design.reload |
| /design help [page] | Displays help pages for the design command | - |
| /coin buy <amount> | Gives the player coins in exchange for money | itemslotmachine.command.coin.buy |
| /coin give <player> <amount> | Gives an amount of coins to a player | itemslotmachine.command.coin.give |
| /coin help [page] | Displays help pages for the coin command | - |
| /slot build <design> [name] | Builds a new slot machine | itemslotmachine.command.slot.build |
| /slot remove <name> | Removes an existing slot machine | itemslotmachine.command.slot.remove |
| /slot list | Displays a list of all available slot machines | itemslotmachine.command.slot.list |
| /slot tp <name> | Teleports the player to a slot machine | itemslotmachine.command.slot.tp |
| /slot rebuild <name> | Rebuilds a broken slot machine | itemslotmachine.command.slot.rebuild |
| /slot move <name> <amount> | Moves a slot machine in your view direction | itemslotmachine.command.slot.move |
| /slot stop <name> | Stops a slot machine instantly without paying out | itemslotmachine.command.slot.stop |
| /slot money <name> <clear/deposit/withdraw/set> [default/amount] | Modifies the money pot of a slot machine | itemslotmachine.command.slot.money |
| /slot item <name> <clear/add/set> [default/hand/items] | Modifies the item pot of a slot machine | itemslotmachine.command.slot.item |
| /slot reload [name] | Reloads the plugin or a single slot machine | itemslotmachine.command.slot.reload |
| /slot help [page] | Displays help pages for the slot command | - |
| /statistic show <slot/player> <name> | Displays the statistic of a slot machine or player | itemslotmachine.command.statistic.show |
| /statistic top <slot/player> <category> | Displays the top ten of slot machines or players for a category | ItemSlotMachine.command.statistic.top |
| /statistic reset <slot/player> <name> | Resets the statistic of a slot machine or player | ItemSlotMachine.command.statistic.reset |
| /statistic help [page] | Displays help pages for the statistic command | - |
| - | All plugin permissions | itemslotmachine.* |
| - | All command permissions | itemslotmachine.command.* |
| - | All design command permissions | itemslotmachine.command.design.* |
| - | All coin command permissions | itemslotmachine.command.coin.* |
| - | All slot machine command permissions | itemslotmachine.command.slot.* |
| - | All statistic command permissions | itemslotmachine.statistic.* |
| - | Modify a specific slot machine | itemslotmachine.slot.modify.<name> |
| - | Modify all slot machines | itemslotmachine.slot.modify.* |
| - | Inspect a slot machine by right clicking it | itemslotmachine.slot.inspect |
| - | Use a slot machine | itemslotmachine.slot.use |
| - | Use all slot machines | itemslotmachine.slot.use.* |
| - | Create a coin shop | itemslotmachine.shop.create |
All listed commands and permissions above are always referring to the newest version of ItemSlotMachine!
How to: Coin Shop
You have to write [CoinShop] in the first line of a new sign and click done in order to create a coin shop sign automatically. You can change the amount of coins you want to buy by pointing your cursor at the sign and scrolling up or down. (if you hold shift while scrolling, the amount will increase/decrease by 10) Simply right click the sign after you've chosen the amount of coins you want to buy to make a purchase.
Source
The source code can be found in my repository on GitHub!
Contribute
If you find a bug or encounter an error, please open a new ticket on CurseForge or GitHub, send me a private message or comment down below! Suggestions and ideas for new features are always welcome and can be submitted via the previously mentioned ways.
Videos
-
View User Profile
-
Send Message
Posted Jan 8, 2014rangewonk,
I was in open field when I tried this, so there should be space enough. Do in need to select an area first? I tried that also with no suc6. I think I wait untill you have the video uploaded.
Thanks for your reply.
Rev
-
View User Profile
-
Send Message
Posted Jan 7, 2014@Revdutchie
The slot machine is 3 back and 5 across in size, meaning you need a 3x5 area to fix the slot machine in. It generates 1 block forward and 4 blocks to the right, from the block you are standing on.
If you are standing in a spot that the slot is too large to fit into you will see this error. Try moving around and try building the slot in different places to test it, You can always destruct the slot if you do it wrong!
If you are still having problems, later watch the video tutorial that will be uploaded onto bukkit today.
-
View User Profile
-
Send Message
Posted Jan 7, 2014Hello,
I am trying to get this to work with the default machine but all I get is "there is not enough space to build this design" Can somebody please tell me what I am doing wrong?
Rev
-
View User Profile
-
Send Message
Posted Jan 6, 2014@wazoomie
Well I made a mistake in the reload method of the manager which unregistered all listeners (even from other plugins) instead the ones from the manager only :/ I've currently coded that only the value of one sign is stored so the sign you've previously used will change back to one coin! I'm thinking about making the prefix customisable too, so maybe in the next version, I may also make it so that it stores the values of multiple signs, but however they have to be reset when you walk to far away!
-
View User Profile
-
Send Message
Posted Jan 6, 2014@rangewonk
This version doesn't break all my other plugins with /slot reload. :p Thanks!
Mind explaining how a plugin could break (all) other plugins?
-edit-
Could you maybe make it so we can change/remove the prefix?
-edit-
When I place a CoinShop sign and look at it it works, but when I place a second sign and change the value the first sign changes back to 1 coin. Can't get it to work. :-(
-
View User Profile
-
Send Message
Posted Jan 5, 2014@catprowler
The latest version of 1.3.0 has been uploaded but is waiting approval. You can download it here!
-
View User Profile
-
Send Message
Posted Jan 5, 2014Will there be dev builds on this? Thank you
-
View User Profile
-
Send Message
Posted Jan 5, 2014@markdf
Instructions on what? Since this plugin has been released the first time no one asked for instructions until now :D
-
View User Profile
-
Send Message
Posted Jan 4, 2014Some instructions would be nice :)
-
View User Profile
-
Send Message
Posted Jan 3, 2014@151baccardi
Hello 151baccardi.
When installing the lastest 1.3.0 file you must first delete the old lang_EN.txt file in the ItemSlotMachine directory.
We have tested the latest version and we had no errors. Please try deleting the lang_EN.txt and the old ItemSlotMachine.Jar then add the latest version of 1.3.0. After doing so please reply and let us know what the outcome is.
Thanks!
-
View User Profile
-
Send Message
Posted Jan 3, 2014I just downloaded the one from 6 hours ago (the one in your link) and now the sign is broken NO MESSAGE NO MESSAGE - I'll stick with the broken one from before as it isn't as broken as the most recent one.
-
View User Profile
-
Send Message
Posted Jan 3, 2014@151baccardi
Hmm are you sure that you've downloaded the latest 1.3.0 file, because the reload was messed up in the other ones, but this must work because I've reloaded the plugin a couple of times with /slot reload and every Plugin on my testserver still works fine. (Here's an image of a test with HeroChat enabled)The template config for slot machines is actually a pretty good idea which will be added with the next version ;) Well I look regularly at the comments section to help people as fast as possible^^
-
View User Profile
-
Send Message
Posted Jan 3, 2014I finally got it all to work. You have to use exact syntax and one character out of place will break the whole thing. /slot reload still breaks chat. I use Herochat. A restart will fix messed up chat if you accidentially used /slot reload... It's like it unhooks something and doesn't hook it back up. The /slot reload happens in 20ms. !! Otherwise, to change a whole lot of slotmachine configs at same time (because there's no template), I have to individually rename slot1.yml to slot2.yml on my client and then FTP it to my server to overwrite the stupid default slotx.yml settings with the renamed file from my client and since reload don't work for me, I get to restart all the time. Pain in the neck, but now that I have it all working, I'm happy again. What i really love about it, is now I can actually edit the machines (entire rows of them), anyway I want them (as OP). Makes the final outcome look really nice ! And Thank you very much for being devoted to your comments section. Your last reply was very prompt !!
-
View User Profile
-
Send Message
Posted Jan 3, 2014Ok. I had powertools (essentials) clear command asigned to bone. I fixed that and can now mark a region with wand... Anyways, what's troubling me is that the slotmachine works when created with /slot build default ... but once I change some settings here, it says, no slot machines found. This is what I changed:
-
View User Profile
-
Send Message
Posted Jan 3, 2014@151baccardi
Well this is kinda strange since it works perfectly for me and my testers, I've recently tried it again and it still works as it should. I have also GroupManager installed and it won't be taken out after I select an position and ItemSlotMachine doesn't even hook GroupManager. Your custom design only needs to contain 3 item frames, a sign and a jukebox block. Can you tell me what server software you are running this on and check your log for errors?
-
View User Profile
-
Send Message
Posted Jan 3, 2014I did /design wand and after selecting pos1, it clears my inventory. It also reset chat formatting... and I even seen it take out essentials groupmanager !! Can you offer a build that fixes items in item frames popping out but keeping the old format ? The only machines that work are default machines and they kick out items. I really would like to see the return of a global config file vs individual configs. At this point, I cannot even create a custom design because it clears inventory instead of marking positions. Also, there is absolutely no info on how to layout a custom machine. After creating a default machine and editing the individual machine, it won't work... It says, there are no slot machines defined under /slot list !! I like this plugin very very very much. I'd just like the old version back with item frames fixed, until the new release is more stable and doesn't hook into essentials...
-
View User Profile
-
Send Message
Posted Jan 3, 2014How do i give the coin in a kit, or for them voting, i have seen it on a couple of server, and i have tried using the lore and renaming the item, but it is still not working , can anyone please help
-
View User Profile
-
Send Message
Posted Jan 1, 2014The final version 1.3.0 file has been uploaded and is already available here until the mods approve the new file!
-
View User Profile
-
Send Message
Posted Jan 1, 2014Also, there is a big error on 1.3.0.
http://pastebin.com/v76eDyC8
after i use a coin on the slot machine it starts ticking, after the item frames have stopped it continues ticking and no messages are shown. But I get this big error in the logs, which continues to spam until I stop the server.
http://pastebin.com/v76eDyC8
-
View User Profile
-
Send Message
Posted Jan 1, 2014@DarkBladee12
Many thanks, Would you like me to make a video about this plugin on 1.3.0 for you to put on this page as a tutorial on how to set it up?
My youtube is www.youtube.com/rangewonk