Inactive [MECH/ECON] Showcase v0.8.1 - Create visual shops by spawning drops on slabs [1.1-R5]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, May 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    narrowtux

    [​IMG]
    Version 0.8.1​
    As supposed in this thread, I created a plugin that lets you put items into glass blocks (now steps, it's notchs fault) to showcase them. This is useable for shops, to show what's for sale there, or to make clear what type of farm you built.
    Features
    • Showcase all items in a half-step Block
    • Block protection (you can't break the step block and the block below it to prevent that the item falls down)
    • Multiworld
    • Items in a showcase can't be picked up
    • Only the player who created a showcase can remove it
    • Prevents despawning of items (Normally, drops disappear after 5 minutes)
    • You can setup finite and infinite shops
    • DropChest support (disables DropChest for absorbing the showcased items)
    • WorldGuard support (works out of the box)
    • Localisation
    • Can show custom item names through BukkitContrib
    • Economy support:
      • iConomy 4 & 5
      • BOSEconomy
      • Essentials Economy
    Download & Source-Code
    Download Showcase.jar
    Browse Source-Code on Github
    You will need an economy system if you want shops.
    This will install NarrowtuxLib automatically!
    Please donate, if you really like this ;)
    Videos
    Show Videos (open)





    When you have got issues, please read this:
    Issue Report (open)

    1. Please, first check if you have got the most recent version of Showcase and the most recent recommended build of Bukkit.
    2. Then, check if the bug is already listed in the "Known Bugs" section.
    3. After doing step 1+2, report the bug with at least this information:
      • Version of Showcase
      • Version of Bukkit
      • If possible, a step-by-step explanation of the bug
      • If possible, console errors
      • When you think that this has got to do with another plugin, please list all your plugins like this:
        • PluginA, PluginB, PluginC ...
    This will be incredible helpful for me to fix it faster.


    You don't actually have to retype everything I typed here, but if you'd take it as a guideline which content you should include in your issue report, it's more helpful ;)

    Please, don't come here just to say "This doesn't work.". This says nothing.


    Usage
    Adding a showcase
    1. Start sneaking!
    2. Right-click a half-step block with the item in your hand you want to showcase
    3. An assistant will ask you which type of Showcase you want to add. Type the text before the colon :))
    4. Depending on the type you chose, the assistant will ask some extra questions, follow the assistant to finish showcase creation.
    Removing a showcase

    1. Sneak
    2. Right-click on a showcase. If this was a finite showcase or an exchange showcase, you will get your items back.
    Permissions


    ActionPermission-NodeWithout Permissions
    Create a basic Showcase.showcase.basicPlayer
    Create a infinite shop Showcase.showcase.infiniteOperator
    Create a finite shop Showcase.showcase.finitePlayer
    Create an exchange Showcase.showcase.exchangePlayer
    Buy from a finite shop showcase.showcase.buy.finitePlayer
    Buy from an infinite shop showcase.showcase.buy.infinitePlayer
    Removing a showcase of other players.showcase.adminOperator

    The column "Without Permissions" explains which user-type can use this permission when no Permissions system is installed.
    What are shop showcases?
    A shop showcase can be used to sell items to your players. There are 2 types of shops now:
    1. Infinite shop. This one has an infinite amount of items. The money that the players give to buy an item will go to nirvana
    2. Finite shop. This one has that number of items which the owner has set up. The owner will get the money from which the items were bought.
    How can a Player buy items from a shop showcase?

    1. Click on the Showcase. The price per item and the available amount will be displayed.
    2. Type in the number of items you want and hit enter. A message will show you the success of the checkout.
      • Type 0 to abort checkout
    How can you refill a finite shop showcase?

    1. Click on it
    2. Type in the amount of items to refill. Negative values will remove that amount from the showcase.
    3. Walk away or type 0.
    Commands

    The showcase command handles manual saving and loading
    /showcase save
    Saves the items to showcases.csv
    /showcase load
    Loads the configuration, translation and items without saving (Use with caution)
    /showcase reload
    Saves and loads everything after that. Useful when some items aren't in place and you want to quick-fix that.

    Configuration
    The configuration file is auto-generated and is called showcase.cfg
    Here are the configuration possibilities:
    • basicmode : this decides if the plugin should operate like in version 0.2 or before (Just the basics)
    • priceforbasic : this adds a price to the basic showcases
    • priceforfinite : this adds a price to the finite showcases
    • priceforexchange: this adds a price to the exchange showcases
    • removewhenempty: when set to true, a finite showcase will be removed when it's amount hits 0
    • showcaseprotection : turn this to false to be able to remove showcases from other players (griefers) (you should now use WorldGuard instead of this one ;) )
    • locale: standard is en-US. The german translation which is included in the jar-file is de-DE. If you type that in, it will copy the german file from the jar to your plugins folder
      • You can change the translation very easily by editing the existing locale.
      • Colors are supported, just add something like [GREEN] or [DARK_RED] to the text.
      • You can add newlines with \n
    • autosaveinterval: the time between two auto-saves in seconds. Standard is 60 secs. Use -1 to disable autosave.
    Translations

    Currently available translations:
    Changelog

    Version 0.8.1
    See the whole changelog

    Todo
    • Spawn multiple items in the same glass block (up to 4, would be aligned nicely)
    • Verify that there is no free space below the glass block before adding a showcase
    • Maybe let the showcase glow when you placed torches, glowstone or lava in it
    • Custom messages (aka localisation)
    • Sell-Showcases
    • DropChest support (so the items inside the glass won't be absorbed by a Dropchest)
    • Limit the amount of Showcases per player
    • Add a price that the creator of a showcase has to pay (there would be an independent price for each basic, infinite and finite showcases)
    • Linking infinite shops to banks (money spent for items goes there)
    • Rent a showcase for money/day
    • Autosave with configureable interval
    • Commands for save, load and reload
    Crossed items are already done!

    Known bugs
    • This plugin conflicts with some chat-altering plugins (i.e. bColoredChat) this is because the authors don't know how to correctly set up the priority of events.
    • Normal players (the ones that aren't operators) can't use showcases that are in the spawn-protection area. Either disable the spawn protection or place the showcases to an other location (Disable spawnprotection by setting "spawn-protection-size=0" in the server.properties file)
    • With the latest dev preview (not the recommended build), you're able to make slabs to double steps. I've got to investigate until they propose it as RB.
    • ATM, Showcases won't save enchantments. So please just don't try to sell yours because that wouldn't work either.
     
  2. Offline

    aaomidi

    Guys i gave the solution you diddnt want it LOL
     
  3. Offline

    narrowtux

    Okay, thank you for reporting the zero price issue, that's what the dev builds are for ;)
     
  4. Offline

    Vrejcraft

    I dont need that Bec that one is working awesome! and fine! =D and people are buying stuff I already made shops and stuff!
     
  5. Offline

    lesmaux

    What version of Bukkit are you running?
     
  6. Offline

    Undying

    [​IMG]

    Well guys, my problem is that i cant set the amount of money after i write finite/infinite. Downloaded this devs (but the first ones me2 got the showcase canceled error), can u help me? Sorry for bad english. :)
    Here is the image of my plugins.
     

    Attached Files:

    • mc.jpg
      mc.jpg
      File size:
      128.7 KB
      Views:
      0
  7. Offline

    Creeperman017

    does it work for 1.2.3.02R?
     
  8. Offline

    narrowtux

    Undying
    um, I have removed the price tags for the showcase types when the price is equal to 0. That's to remove some clutter.
     
  9. Offline

    Bemidji3

    Is the latest version updated so that all the prices aren't set to 0? If so can someone post a link?
     
  10. Offline

    Qentus

  11. Offline

    Bemidji3

    Ok thanks I am waiting also
     
  12. Offline

    WolfyTheKing

    Hey i got a little problem with tnt it sell's for 10000$ is it a way to fix this :D ? any advice would be helpfull Thanks!
     
  13. Offline

    majilune

    Hello,
    Is there any way to include an option in the configuration file to "disable" the feature of replacing the slab if it's broken ? Because i am using nearly all of my showcases without the slab, it makes it look better ..
    Thank you
     
  14. Offline

    AndyFox42

    I am currently using it successfully on 1.2 (R0.1) My server uses Register because we have Towny, thus no Vault. As a result, we are able to use the "Basic" showcases, but the finite/infinite/exchange can not be created. Better than nothing. Thanks for working on this Tux, it's a very popular plugin on my server and I'm happy to have it :)
     
  15. Offline

    CarrotPCdude

    I'm very impressed by this plugin, and I used to use it on my server waay before I understood the plugins properly. It works again now on 1.2 R0.1, but every time it reloads the cache or something (sorry, I forgot exactly what file it has problems with) it spams the log with errors.
    Any chance of an update soonish to fix this?
    Thanks for the time you've put into this plugin so far. :)
     
  16. Offline

    aaomidi

  17. Offline

    holsamoht

  18. Offline

    narrowtux

    well if you'd post the stack trace, I can fix it.

    I updated too :p
    It's on the spout jenkins http://ci.spout.org/job/Showcase - NarrowtuxLib is updated automatically.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  19. Offline

    aaomidi

    I have :D

    Man Cmon from now on update a little bit faster :D
    it really doesnt take that long and please remove narrowtux!!!
    THAT IS ANNOYING
    1.extra server load
    2.useless!
    Sorry to be so frank but this is what people were saying when u were disappeared!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  20. Offline

    Telbaru

    I thing there is some litte bug. When i create Some shop it will create them corret with price and so on, but if i would buy some items of the shop and make an left click on the shop it told me a price of 0.00 . When i bought some Items it charge the right price.
     
  21. Offline

    Vrejcraft

    It's 1.2.3 and works fine =D but i'll try the other ones too =)
     
  22. Offline

    Qentus

    narrowtux aaomidi
    I think that the bug with 0.00 prizes still isn´t fixed. I tried both versions.[​IMG]
     
  23. Offline

    Speedyboy235

    All of a sudden, I've been getting lag spikes and lag outs on my 24/7 hosted server, getting this error every time it crashes. 15.03 21:47:19 [Server] SEVERE at java.lang.Thread.run(Thread.java:679)
    15.03 21:47:19 [Server] SEVERE at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    15.03 21:47:19 [Server] SEVERE at com.narrowtux.showcase.Metrics$1.run(Metrics.java:191)
    15.03 21:47:19 [Server] SEVERE at com.narrowtux.showcase.Metrics.access$100(Metrics.java:55)
    15.03 21:47:19 [Server] SEVERE at com.narrowtux.showcase.Metrics.postPlugin(Metrics.java:217)
    15.03 21:47:19 [Server] SEVERE java.lang.NoSuchMethodError: org.bukkit.plugin.PluginDescriptionFile.getAuthors()Ljava/util/ArrayList;
    15.03 21:47:19 [Server] SEVERE Exception in thread "Thread-1809"

    Any ideas?
     
  24. Offline

    Flat896

    It works fine except that nobody can use the slabs if they arnt ops. I am using PermissionsBukkit and have put in the permissions. All my other permissions work fine.
     
  25. Offline

    vinbo215

    Hi I'm just having one little problem. when i try to set up an exchange the assistant asks to put the item I want to exchange for and press ok or type the item name or id. I type in stone as an example and the assistant say "you have selected stone. Right under it this message comes up.

    can't find key assistant.exchange.create.rate.text for translation

    If you could please point out what Im doing wrong i would appreciate that.
    Thank you

    sorry if this message appears twice i really have no idea how to use these forums :p

    Hi I'm just having one little problem. when i try to set up an exchange the assistant asks to put the item I want to exchange for and press ok or type the item name or id. I type in stone as an example and the assistant say "you have selected stone. Right under it this message comes up.

    can't find key assistant.exchange.create.rate.text for translation

    If you could please point out what Im doing wrong i would appreciate that.
    Thank you

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  26. Offline

    narrowtux

    Your kind of user...
    are the reason why I hate developing for bukkit. Sorry, it had to be said.

    Also, NarrowtuxLib:
    You don't know what it does, so it is useless?
    I'll tell you what it does:
    It provides the Translation API, the Assistant API and an API for persistent Notifications. I made one Uberplugin out of it to prevent namespace clashes and so forth.
    Also, you don't understand how Java works.
    If I'd put all the classes from NarrowtuxLib into Showcase, this wouldn't reduce the load, because this would still be the same amount of classes loaded in the JVM.
    So please DON'T make stupid false assumptions. Think about what you say before you write it here.

    Everyone:
    The bug with the 0.0$ price isn't fixed because I haven't fixed it yet. Makes sense? :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
    Garretty and kahlilnc like this.
  27. Offline

    AmoebaMan

    It seems like this could potentially be used for massive item bombing...
     
  28. Offline

    Telbaru

    Right! You do a good job. This kids have no plan so ignore them :D

    I think you don't pay any cent on him, so be quiet ;) it's free for you, so you can't complain.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  29. Offline

    aaomidi

    Cool Bro but the thing is i updated the plugin before him look at the chat history before you talk.
    I know have an Idea for shops which is gonna be cool I will post it on forums whenever im finished WITHOUT an extra plugin something like aaomidilib :D and the reason why it lowers server load is much more complicated than just being in one file which is a really strange java phenomenon I said this in here because I might have thought im talking to people who know something about Java LOL so guys it is something strange and hard to understand thats why im nnot gonna explain it here (easier way go check google)
    So guys im outa here and I don't know why you are having the 0$ error maybe it is another plugin conflicting.
    Please use essentialseco I don't have any problems with that.

    Hi in my updated version I do not have this problem!
    Which version are you using did you download with the links I posted here?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
    dabiggman likes this.
  30. Offline

    Qentus

    I downloaded them from your urls.
     
  31. Offline

    Vrejcraft

    ok i just tried the one that u made it is broken so i went back to the one that the other person made.. =/
     
Thread Status:
Not open for further replies.

Share This Page