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

    Jan Tojnar

    Minecraft offers only partial support of ISO Latin-1 (see attachment).
    Edit: It is white text with transparent background so you will probably have to download it.
     

    Attached Files:

  3. Offline

    TheDeejay

    Can someone ask narrowtux if I am accidentally blocked or something on his end? I've posted a few times with some suggestions for the plugin, but it seems like he looks directly over the posts. I don't think I've done anything to provoke any reason for it, outside of praising one of my favorite plugins and wondering if some features were in the works ):
     
  4. Offline

    narrowtux

    Hey,
    didn't intended to do this, sometimes I forget about answering all the posts ;)
     
    TheDeejay likes this.
  5. Offline

    Noffletoff

    I'm having a problem on my server, where anyone is able to right click a showcase, regardless of the owner, and enter the restock mode, and they are able to take out someone elses items in the showcase regardless of whose it is. Could this be a config issue or a permissions issue?

    If you need anything let me know.
     
  6. Offline

    narrowtux

    Oh... I totally forgot to add a check -.-

    Release v0.7.1
    • Added a check before showing the refill assistant.

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

    Noffletoff

    xD Thanks!
     
  8. Offline

    SLUGAKARL

    Sorry But You didnt reply will you be making a sell-showcase?
     
  9. Offline

    narrowtux

    It's in the todo.
    I don't have time to answer each request if I'll make a sell showcase.
     
  10. Offline

    djrazr

    The User's on my server found out that there is a very funny usage of yout plugin considering pistons :p
    You can disable a shop easiely with following build:
    Code:
    Disabled
    []_[]
    Enabled
      _
    []{}[]
    
    [] = any block
    
    {} = sticky piston (on)
    
    _ = shop step
    
     
    Thank you for your wonderful Plugin! Whole Seling processes are working with this!
     
  11. Offline

    TheTennessee

    I found the best use for this mod ever. Toss a clock in a halfblock... it shows the time. You can make some pretty decent "wall" clocks this way. I use this for displaying the contents of all the in game shops. Makes great decoration too, and putting things onto tables works great too. I have to say, clocks I can look at in my home though take the cake.
     
  12. Offline

    SLUGAKARL

    ok sorry
     
  13. Offline

    quickclay

    I no longer see a startup message when my server boots up.. it's kinda nice to know it's loading and the version number. Thanks!

    Shoot I just upgraded from 0.6.13 to .7.1 and now whenever I try to buy a quantity from a shop it just says "You bought 0 items for $0.00" even if the price is say $10. Any chance you could post a link to version 6.13 as a workaround in the meantime?

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

    narrowtux

    Older versions are in the changelog ;) Just click on the version number.
     
    quickclay likes this.
  15. Offline

    sharkale

    yes, but if you read the file with UTF8 the áéíóúñ characters show properly. and its supported by minecraft. i have a lot of plugins with "utf-8" support for áéíóú.
     
  16. Offline

    narrowtux

    The problem is that I didn't look on the default encoding of eclipse. On a Mac, it's MacRoman, although I totally prefer utf-8.
    The problem is that I don't know how to convert to utf-8...
     
  17. Offline

    sharkale

    I use this API from Nijikokun that read/save properties files in utf-8 format.
    https://github.com/sharkiller/MCSig...er/MCSignOnDoorRTK/Config/PropertiesFile.java

    with notepad++ easily you can change the format:
    [​IMG]
     
  18. Offline

    Sporadisk

    Heyo, my users are reporting that they are no longer recognized as the owner of their stores as of Showcase v 0.7.1.
     
  19. Offline

    blackpsyops

    what is the trading currency???what is the money in this plugin
     
  20. Offline

    joss871

    Hi :)

    Thank you very much for creating this plugin, it works very well!

    Quick question, is it possible to sell a pack?

    For example, I want that when the player requests a unit to a sky, of receiving 32 pieces of redstone?

    Sorry for the translation, I'm french:)

    Thx!
     
  21. Offline

    narrowtux

    I think Eclipse has some kind of that too, but it doesn't really convert...
    I use a FlatFile reader that I created my self. What file-type it can read/write only depends on the file-type of the class or the .jar

    They have to rightclick to refill now ;)
    I forgot to say this :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 10, 2018
  22. Offline

    SkyChaseZone

    Please make the sell showcases!, I would be forever in your debt!
     
  23. Offline

    sharkale

    you dont need to convert anything in eclipse. if i add my language with áéíóú translations inside your plugin in UTF-8, write them in UTF-8 in disk but fail to read the value in UTF-8 format with your method.
    another question, why you use csv extension for a key=value file?
     
  24. Offline

    4am

    Is it possible to turn off the autosave log spam?
     
    sharkale likes this.
  25. Offline

    sharkale

    Requests :rolleyes:
    • Remove autosave log, show only if fail.
    • Life of a finite store without purchases configurable. e.g. "Your market didnt have sales for 7 days and was closed." (global config would be awesome)
    • Log of transactions "showcase/transactions.log" with data/time/item/amount/price
    • Creating showcase in one command "infinite 0.99" "infinite 5" or another way to create the showcase, maybe "/showcase infinite 5" and then tell you to hit the slab with the item in the hand. (I have a couple of users who tell me they occasionally appears the wizard, putting slabs) or maybe both and a config to disable the wizard.
    I love the plugin [cake]
     
  26. Offline

    4am

    We need to force notch to allow items inside glass again.
     
  27. Offline

    SissyRoo

    Hey. I was wondering when the stacks.cvs will be updated for 1.7. Currently when someone tries to sell a piston or sheers on my server it crashes. Id appreciate if its updated soon. :) I don't know if I can manually add the items or if it has to be in the jar itself.
     
  28. Offline

    narrowtux

    You can manually add the items to the list until I add them.
     
  29. Offline

    malabarth

    I have a big problem!

    All was working, and since plugin update.
    I have lot of errors!

    Code:
    20:40:42 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.StringIndexOutOfBoundsException: String index out of range: 1
            at java.lang.String.substring(String.java:1934)
            at com.earth2me.essentials.Settings.getCurrencySymbol(Settings.java:507)
            at com.earth2me.essentials.Util.formatCurrency(Util.java:289)
            at com.earth2me.essentials.api.Economy.format(Economy.java:219)
            at com.nijikokun.register.payment.methods.EE17.format(EE17.java:28)
            at de.moritzschmale.Showcase.ShowcaseTypeSelectionPage.getPrice(Showcase                                                                                        TypeSelectionPage.java:82)
            at de.moritzschmale.Showcase.ShowcaseTypeSelectionPage.<init>(ShowcaseTy                                                                                        peSelectionPage.java:19)
            at de.moritzschmale.Showcase.ShowcaseCreationAssistant.<init>(ShowcaseCr                                                                                        eationAssistant.java:25)
            at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerInteract(Sho                                                                                        wcasePlayerListener.java:51)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j                                                                                        ava:307)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav                                                                                        a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j                                                                                        ava:321)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven                                                                                        t(CraftEventFactory.java:168)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j                                                                                        ava:210)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:552)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I think there are a incompatibility between two plugin, an idea?
     
  30. Offline

    4am

    Looks like you're using Essentials for your economy, and something isn't compatible there. Is there a reason you need Essentials' economy features? (I have mine disabled in favor of iConomy...)

    Could you add support for double-steps? Possibly any block type (read: any that make sense. Water/torch/flower etc are silly)?

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

    narrowtux

    I plan to add support for all block types.
    But I also thought about if it were so good if I made them all accessible by sneak-rightclicking.
    Maybe a command before that and then rightclick the specific block.
     
Thread Status:
Not open for further replies.

Share This Page