TokenShop
Description
TokenShop allows server owners to create the server of their dreams without the having to pay for custom plugins. A plugin started that only handled voting; now leveling the playing field everywhere! This allows your players to vote, and then be rewarded for their effort, whats that? You're tired of giving players the same thing over and over and a boring thank you message? Your players mean more to you than that, so prove it! TokenShop allows you to create custom shops, with interfaces, for them to spend their 'Tokens' from voting in powered by Votifier, or turn that off and use your own! Now these aren't any old boring shop, your imagination is your limit! This allows you to customize every little bit of the shop! Here's a few for example: Shop size, shop names, item names, item colors, item lore, commands on purchase, broadcast messages, private messages! Literately anything you can imagine! And even within your customization there is more customization!!! But how do they access these wonderful stores? Simple, signs and commands; and even the signs are totally customizable because your sever is special and different not just another! Oh and did I mention there can be technically infinite shops? Because limits are dumb! Speaking of limits what if I told you these wonderful features also can hook into vault and allow you to create admin shops!? Yes, your economy plugin totally compatible! Why using boring admin shop signs when you could make an amazing store with interfaces?!
Now because you shouldn't be limited on what you can do, there is even the world's easiest kit system built in. Less time typing in long boring codes for kits and more time making your server the best it can be! The kit system has a cool down system built in and all kits can persist through a server shut down or restart, so no worries there. And of course not that you'd need to ask by now but the players can purchase kits in the stores with their tokens or even buy permissions for new ones; whatever you feel you need to do!
Ever seen a server where they have those fancy items that allow you to teleport from lobby to lobby? Or navigate menus? Yup, you have that now too, except yours is more customizable and its free! And of course you also could just use this system to navigate through shops because you're just cool like that. Or because you can do them both... twice!
Now I bet you're thinking: What about all the permissions and crazy config files!? Don't worry permissions are all simple and very dynamic meaning they are tailored to how you setup your shops, making life easier for everyone! And configs? Each shop has its own config file, generated by you and you only have to put in what you want, lets not waste your precious time. And the main config? Fill it out once and good to go! And in case you ever feel lost, there is a readMe included to help even more!
There is too many features to go over here! But I will quickly mention there is also a server broadcaster, a donation and voter assistant command!
Commands
- /givetok [PlayerName] [#OfTokens] - Gives PlayerName NumberOfTokens
- /tokens - Tells player how many tokens they have.
- /token - Tells player how many tokens they have.
- /enchantcode - Gives you the EnchantCode for the item in your hand.
- /openshop [ShopName] - Opens up GUI for ShopName
- /market [MarketName] - Opens up GUI for MarketName
- /createkit [KitName] [KitCoolDownTimer] - Creates a kit with a cool down of CoolDownTimer
- /kits - Displays all the kits you have access to.
- /kit [kitname] - Gives player KitName, if not on cooldown and has permission.
- /vote - Displays the Voting websites for the server.
- /donate - Displays the website for donating to the server.
- /regenconfig - Will regen the config file. Must have permission.
- /deletekit [KitName] - Deletes kit KitName.
- /editkit [KitName] [CoolDown/kit] <Time in seconds for cool down> - Edits either kits contents or kits cool down timer.
- /ConfigReload - Reloads the config file.
- /ReloadShop [ShopName] - Reloads shop file for [ShopName].
- /ReloadMarket [MarketName] - Reloads market file for [MarketName].
- /shop - Will open the default shop, if supported.
- /store - Same as /shop.
Creating your shops
I've made a compilation of pages to help you easily find the topic you are looking for! Just go to the top of the page and click on the tab 'Pages' and just look under Shop Creation for all your needs! Or here's the link: http://dev.bukkit.org/bukkit-plugins/tokenshop/pages/
Config
After you've put the plugin on your server, in the TokenShop folder there will be a readMe.yml which goes deep into explanation of how to use the simple config file. If you can't find what you need check the pages tab on this page! If you still need help feel free to send me a PM!
Permissions
- OP will have all permissions by default.
- tokenShop.admin - Contains permissions openShop, createShop, and createKit and use the /givetok, /regenconfig commands.
- tokenShop.openShop - Permission for a player to use the /openshop command.
- tokenShop.createShop - Permission for a player to create shop signs.
- tokenShop.createKit - Permissions to create and edit kits.
- UseShop.[shopName] - Permission for a player to access shop [ShopName].
- tokenShopKits.[kitName] - Permission for a player to use kit [KitName].
- UseShopVault.[shopName] - Permissions for a player to access VaultShop [ShopName].
- NOTE: tokenShop.openShop still requires a player to have permission to use a shop! Doesn't override UseShop.[shopName]!
Get Latest Builds
- If you want the latest versions use the links below! (Jenkins will be posted soon!)
- Stable:
- DevStable(May be buggy!):
Extra Notes
- I would like to thank @45zeldafan for helping me bug test.
- This plugin was originally created for: Empire Craft - play.empire-craft.com
- Need to get a hold of me? Use that wonderful PM system or leave a comment below!
Buy Me A Pizza or Soda
I do always appreciate donations! They help me have more time to work on plugin creation or updates!
PLEASE READ
TokenShop is currently going under some major renovations to make it much more useful to not only server owners but also fellow programmers who want more out of their plugins! Please be patient with the next few versions as much change is coming!
@rick457
After looking into it, it's not possible since the only thing server side that happens is the close inventory event. Sorry.
@Warreo
I dont understand but can you try once when you have time? But you dont have to do it, but it would be awesome if it worked :P gr Rick
@rick457
I'm not 100% sure, but I don't think Bukkit can do that, since that is handled client side. Sorry. :P
Hey sorry for spamming you so much :P But can you make when you have time a command that closes the shop? like /opentokenserver {shopname} but then /closetokenserver {shopname},? Then you can put an item in the tokenshop and if you click on it the shop closes :P Or is there already a command for that? Well thanks for your time to make this plugin and to read this. :)
@UtopianMC
Firstly, use %Tokens% not %Token%. If there is still an error occurring after you change that please show me the error in console. For the shop being blank, do you mean when you open it? First do you have the shop file created, if so what does it look like? (you can send me the pastebin link in a PM so you don't have to share your shops with other people. :)
@UtopianMC
Also when I try to open the shop TokenShop it is just blank. Thanks again for your help
@UtopianMC
Wait I just realised most other commands work its just the /tokens that does not work? Weird
@Warreo
Woops sorry posted the wrong config anyways here it is I updated the config in my server but still gives me the same error
http://pastebin.com/LwZpfVzK
@UtopianMC
Ummm that's not the config for TokenShop, I have no idea where you got that.
Hey I have an error, everytime I try to edit in the config the server gives me ''An internal error occurred while attemption to perform this command'' I have no idea why and really need help on this here is my config
http://pastebin.com/xUxMd5Gs
Thanks for the help
@rick457
In the shop lore of an item use %Tokens% and it will replace that with the player's current Token amount, so like this:
Shop Lore: You have %Tokens% tokens. would translate to: You have X tokens, where X is the actual count of current tokens the player has. :)
@Warreo
and how do you do that with the indentifier? sorry i am a noob at this :P
@rick457
That's a bug with bukkit and cancelling inventory click events, I can have it refresh the inventory every click to prevent the pulling of fake items, but it feels really awkward. As for the emerald, you already have all the tools to make one, just make an emerald in the store with lore using the identifier to get player's token count. :)
Hey i think i found a bug: When you buy something in a tokenshop you press left or right mouse button right? Well you get in your inventory what you bought, but... you "grab" also the item what you pressed to buy something, so you can take that to your inventory as well. Is this a bug? Oh and this is a request: Can you also make something that you can see in the tokenshop how many tokens you have. Like you see an emerald and you go with your mouse over it and you see in the text how many tokens you have. Well that was it. I love your plugin bro :)
@rick457
http://dev.bukkit.org/bukkit-plugins/tokenshop/pages/config/disabling/
@112jjaaccoobb
Do you have Votifier? TokenShop uses Votifier as a listener. As for kits, just turn them off in the config.
How can you disable the /donate , /vote and /kit command because i already have those commands with another plugin. Please help!
Well i cant disable the kits and when they vote they dont get they tokens...
Please Help!
@richgotya
Ok, I'll get right on figuring that out. Sorry! :)
@Sparkyau
Well, there's no place that ever forces you to use the name Tokens, just change all the messages in the config file. :)
@Warreo
Tokenshop v 1.3.2 still does not work with silkspawners
@Warreo
this plugin looks amazing! if there's one thing i'd like to suggest, it'd be the possible feature to "rename" Tokens to maybe another currency name or something? so instead of "You have 9 Tokens" it could be "You have 9 Credits" or something that makes it a variable :) if you read this, thank you, if you accept this suggestion, i will love you forever :P