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
How to I add perms for those who don't have perms to do it?
@M3DDLER
Please post the error code!
Hi,
I just updated to craftbukkit dev build 2717 and itemslots has started throwing up errors and crashing the server which is causing rollbacks.
This is just a fyi :)
M3DS
hello..I use v1.2.2 itemslotmachine plugin and bukkit version is 1.5.1 . This problem will happen and casue server lag...
上午 01:05:15 [warning] [Server] The main thread failed to respond after 10 seconds 上午 01:05:15 [warning] [Server] Probable Plugin cause: 'ItemSlotMachine' 上午 01:05:15 [warning] [Server] What follows is the stack trace of the main thread 上午 01:05:15 [warning] [Server] at java.net.DualStackPlainSocketImpl.connect0(Native Method) 上午 01:05:15 [warning] [Server] at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) 上午 01:05:15 [warning] [Server] at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) 上午 01:05:15 [warning] [Server] at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) 上午 01:05:15 [warning] [Server] at java.net.AbstractPlainSocketImpl.connect(Unknown Source) 上午 01:05:15 [warning] [Server] at java.net.PlainSocketImpl.connect(Unknown Source) 上午 01:05:15 [warning] [Server] at java.net.SocksSocketImpl.connect(Unknown Source) 上午 01:05:15 [warning] [Server] at java.net.Socket.connect(Unknown Source) 上午 01:05:15 [warning] [Server] at java.net.Socket.connect(Unknown Source) 上午 01:05:15 [warning] [Server] at sun.net.NetworkClient.doConnect(Unknown Source) 上午 01:05:15 [warning] [Server] at sun.net.www.http.HttpClient.openServer(Unknown Source) 上午 01:05:15 [warning] [Server] at sun.net.www.http.HttpClient.openServer(Unknown Source) 上午 01:05:15 [warning] [Server] at sun.net.www.http.HttpClient.<init>(Unknown Source) 上午 01:05:16 [warning] [Server] at sun.net.www.http.HttpClient.New(Unknown Source) 上午 01:05:16 [warning] [Server] at sun.net.www.http.HttpClient.New(Unknown Source) 上午 01:05:16 [warning] [Server] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) 上午 01:05:16 [warning] [Server] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) 上午 01:05:16 [warning] [Server] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) 上午 01:05:16 [warning] [Server] at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) 上午 01:05:16 [warning] [Server] at com.DarkBlade12.ItemSlotMachine.Metrics.Metrics.postPlugin(Metrics.java:438) 上午 01:05:16 [warning] [Server] at com.DarkBlade12.ItemSlotMachine.Metrics.Metrics.access$5(Metrics.java:375) 上午 01:05:16 [warning] [Server] at com.DarkBlade12.ItemSlotMachine.Metrics.Metrics$1.run(Metrics.java:268) 上午 01:05:16 [warning] [Server] at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftTask.run(CraftTask.java:53) 上午 01:05:16 [warning] [Server] at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) 上午 01:05:16 [warning] [Server] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:512) 上午 01:05:16 [warning] [Server] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) 上午 01:05:16 [warning] [Server] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476) 上午 01:05:16 [warning] [Server] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409) 上午 01:05:16 [warning] [Server] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
@Dsiddia
That issue has been posted over and over. You just have to relog and all is fine ;)
Hey, would love to use this plugin! But, for some reason, I get an error when using the /slot buy command. Any idea why this might be happening? I have most recent version of CB.
http://pastebin.com/ptc9EGCi
Hey, wonderful plugin! Works great. One issue though. Placing slot machines only works if you're facing south. Any other direction and the item frames go on the back of the slot machine! If you could fix this, that'd be wonderful. Maybe a config to change the prefix as well?
@Zephrith
Umm there's also a command which is called "/slot remove NAME" which will delete the slot machine from your world and config so you can easily do "/slot generate" at another location then ;)
Hey I'm having trouble repositioning the slot machines, repositioning the item frames was just taking way too long so I decided to reposition the jukebox(which is called slot in the itemslots file I'm assuming). I moved them inward one block and the old jukebox still won't let me remove it and wont accept coins, but I managed to remove it with worldedit. Now the new jukebox will take coins but the problem is that it's not activating the item frames and is stuck in a never ending cycle so it stops me from playing in another forever unless I restart and doesn't say I won or lost. Any Idea what I could be doing wrong or something that I forgot to do? Maybe add a command to change the positions of these things in a later version? Great plugin by the way, tons of fun!
@SjorsMaster
Check your server.log for errors, maybe you don't have the latest craftbukkit?
Its dont working? Why?
Donation is now possible by clicking the "Donate" button at the right top of the page!
@DarkBladee12
got it, i'll restart soon .. tnx :)
@LeakCraft
That's because this plugin uses NMS code... I'll see what I can do ;)
Could you please "future-proof" your plugin? The 1.5.1 development build just came out today and your plugin broke on it, just like it did on 1.50, however your plugin is one of the very few I run that do. The rest work fine.
I see. I used regular nuggets and not "coins" purchased through the sign or command. Sorry about that. Once I did that, it worked perfectly. Thanks for the great plugin.
@LordDagon32
The thing with the frames is a client-side bug, just relog and the frames will be on the right side ;) Did just use normal nuggets or did you use the ones from "/slot buy", because only the "Coins" will work, not normal nuggets!
Maybe I am missing something, but I downloaded this, installed it, and did /slot generate. When I try to click with nuggets, nothing happens. Using the default config. I am using Sun Java 7. Craftbukkit build 1.5-R0.1 build #2667.
Additionally, when generating slot machines facing North or East, the item frames are on the wrong side of the machine. Those generated South and West have the item frames on the correct side.
ha ha ... awesome plugin, a lot of fun.
works perfect on spigot (#667) 1.5
@Chattrick
The latest version only works for 1.5... You can read the bukkit version it is for behind the name of the file ;)