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

    MojoManagement

    What about MySql-storage? :)
     
  3. Offline

    PlannedBoredom

    :eek: I only checked the first page... lol ok getting it.
     
  4. Offline

    JoshP95

    Can you sell items to a showcase? If not, could it be a possible future feature?
     
  5. Offline

    narrowtux

    Will be possible soon :D
     
  6. Offline

    malabarth

    Here is the French translate, tested and approved by my server! =)
    Feel free to use it in your next release!
     

    Attached Files:

    narrowtux likes this.
  7. Offline

    JoshP95

    AWESOME! This will be just what I need! Great plugin, keep it going! :)
     
  8. Offline

    EllBristow

    Agreed... we use showcases and it's probably our most popular plugin... beats the 'do-do' out of sign shops and chest shops... but needs sell to make it a full package... especially infinite sell to server.

    I wait with baited breath!
     
    JoshP95 likes this.
  9. Offline

    trasmus3

    Is there anyway to remove all shops a player own, would be great if someone get baned etc.
     
  10. Offline

    ChrizC

    Is there any way you could include a feature that allows you to create "buy" showcases?
    So the showcase "buys" the displayed item for the defined amount?
     
  11. Offline

    Kattalassien

    Yes it would be awesome if you could make a showcase that you aren't allowed to buy from for decoration.
     
  12. Offline

    narrowtux

    basic?
     
  13. Offline

    Kattalassien

    OK thx wasn't sure
     
  14. Offline

    sharkale

    i have this error:
    Code:
    2011-07-10 17:29:51 [SEVERE] Error occurred while enabling Showcase v0.6.13 (Is it up to date?): null
    java.lang.NullPointerException
        at java.util.zip.ZipFile.getInputStream(Unknown Source)
        at java.util.jar.JarFile.getInputStream(Unknown Source)
        at de.moritzschmale.Showcase.ShowcaseMain.copyFromJarToDisk(ShowcaseMain.java:476)
        at de.moritzschmale.Showcase.ShowcaseMain.onEnable(ShowcaseMain.java:138)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-10 17:29:51 [INFO] [Showcase] Payment method found (iConomy version: 5)
    CB: 953
    Plugin: 0.6.13
    when i change the language. i create es-AR (spanish Argentina) with showcase-es-AR.csv and always fail. And if i put the translated strings in en-US.csv always rewrite the file when restart -.-
     
  15. Offline

    Kattungen

    I have had numerous encounters with this plugin at various stages and allthough I absolutely love it I have had to remove it due to an issue with itemduplication. I have been able to fix/work around the bug/error several times only to find another problem of similar sort. I cannot seem to find any reason for this.

    Does this plugin still have a problem with infinite pickups for finite showcases?
     
  16. Offline

    narrowtux

    You still use craftbukkit 927?

    Will look into that tomorrow ;)

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

    sharkale

    thanks and please remove the "[INFO] [Showcase] Autosaved" spam the console.
     
  18. Offline

    TheDeejay

    Hey narrowtux, is there any way currently or planned to have infinite exchange showcases?
     
  19. Offline

    narrowtux

    Release v0.7
    • Now uses NarrowtuxLib - will be auto-downloaded
    • New Type: Tutorial! You can write some lines there, and they will be displayed when you click on it. Even supports colors in [COLOR]-brackets.
     
  20. Offline

    Exanimo

    Thanks for the update!
    But what does NarrowtuxLib do?
     
  21. Offline

    SLUGAKARL

    Hey I Love Your Plugin, best Buy Plugin Around.

    Would You Be Making A Sell-Showcase I Really Can't Wait, (i see you have it on you to do list).
    If So When Would It Come Out?

    I Can't Wait.

    Keep Up The Good Work :D
     
  22. Offline

    narrowtux

    It gathers functionality of my plugins that use this as a lib. This makes it easier to create new plugins with configuration, assistants and translation.
     
  23. Offline

    an0x

    Hm I test i later but can some one say what the tutroial case do ? like basic with text?
    Greetings
    Narrowtux biggest fan :0)
     
  24. Offline

    narrowtux

    That's a good description. Basically, you setup this showcase and then type multiple lines which should be displayed. This text will be displayed to the player who clicks on it.

    Would it break something when you removed EssentialsEconomy?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  25. Offline

    sweetneers

    I can make the showcases and the items floats and everything, but no one can buy anything from it.
     
  26. Offline

    sharkale

    you need to add this nodes in your permission:
    Code:
    showcase.buy.finite
    showcase.buy.infinite
    ps: testing new version...
     
  27. Offline

    sweetneers

    I'm not using permissions.
     
  28. Offline

    sharkale

    i have no idea.

    i tested the plugin, but i have the same problem with translations, my own translation give me an error when the plugin try to copy the language from the plugin to disk, and if i edit the en-US when i restart overwrite the file... but in english work.

    edit: fixed with a workaround, add the translation file into the plugin.
     
  29. Offline

    sweetneers

    Okay, figured out the problem. It's trying to use Essentials instead of iConomy. How do I default /sell to iConomy?
     
  30. Offline

    sharkale

  31. Offline

    larsy1995

    Hey, I was wondering if you would release a update with sell showcases soon? I have stopped using many shop plugins in favor for this. This plugin is unique, and if you added sell showcases, this might put all the other shop plugins in the shadow tbh. Great job with creating this awesome plugin.
     
Thread Status:
Not open for further replies.

Share This Page