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

    EnigmaticMiner

    Yeah that'd be ok. What's your IGN? The server's whitelisted
     
  3. Offline

    narrowtux

    That has already been done, but you just may have showcase.basic that the system auto-selects that for you.
    When you have this, it will be like in the first version.

    narrowtux also.
    *again-I-have-to-wait-and-slap-the-whole-bukkit-team-for-this*

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

    OrtwinS

    Manual download & manual install, the most reliable way of making sure you got the right versions. HERE


    Use the 'edit' button, and add stuff :D. It also looks nicer because you dont have to post 5 posts in a row to answer everything...

    I know you are busy but could you make restricting the number of cases/person & costs for creating cases a priority? these are needed to keep this plugin in check on my server.
     
  5. Offline

    moonjokes

    I'd like it if it was left click to buy right click to sell. Both prices being definable of course.
     
  6. Offline

    riuthamus

    Can I suggest that you make the left click, price, and right click buy... cause its really easy to click twice and buy on accident. Also, a notification of the purchase would be nice.
     
  7. Offline

    narrowtux

    You mean that the owner of the finite showcase is notified when someone buys from it?
    The other thing you are saying is right, I'll have to change this...
     
  8. Offline

    m5k

    Okay, this is kind of a major bug. I'm not sure how to replicate this but once I set up shop, warped away, did something else for 5 minutes, warped back and all the items weren't being refreshed. They all fell out of the glass and I picked them up off the floor, yet when i clicked the store it still said the item price, i could buy it or remove it, which duped the item. Also, when the item is gone you have no way of knowing what you're buying. Relogging didn't solve the issue either.
     
  9. Offline

    onumchuxo

    This would get confusing for people i think, its already pretty simple and the confirmation keeps mistakes from being made

    edit: it might be nice to have confirmation for both now that i think about it, unless you plan on implementing selling...maybe a y/n instead of clicking to buy, say...

    left click item: would you like to buy 'x' for 'y'
    "y/n?"
    right click would you like to sell 'x' for 'y'
    "y/n?"

    it would be fail-safe that way
     
  10. Offline

    moonjokes

    THIS^^^^^^!!!!! LOVE IT.

    also an option for "enter the amount to buy/sell" would remove the need for clicking a whole bunch
     
  11. Offline

    narrowtux

    I would rather ask the user how many items he wants to buy. Because at the moment, it's very easy for him to buy multiple items but with this, he has to type "y" for each item he wants.
    I would implement something like this:
    "How many items do you want to buy (x in stock, y$ per item)? (type 0 to abort)".
    Then the user types in the amount and he gets it.
     
    moonjokes likes this.
  12. Offline

    onumchuxo

    yes, thats why you are the developer! didnt think about multiple item buying, this would be very good.
     
  13. Offline

    m5k

    I was gonna ask for the "how many you wanna buy" right after you checked that dupe/steal item bug i posted, lol.
     
  14. Request:

    blacklist-items=20,

    Something like that, this way, people can still sneak-build without getting error messages :p
     
  15. Offline

    MiHo

    Could you add translation support?
     
  16. Offline

    narrowtux

    It's already in the todo list.
     
  17. Offline

    mavbear

    - Sneak + RClick glass block with diamond pickaxe
    - Use "finite" shop command
    - Set price to 100
    - I have 1 diamond pick in inventory, but I type "2"
    - Client crashes
    - Return to server, shop is set up
    - Try to type anything: "Finite Shop Showcase setup successful"
    - New item spawns in the block
    - Cannot chat

    Also I crash any time I make a shop at all.

    This is a clusterf**k.
     
  18. Offline

    moonjokes

    or maybe an item you have to use to make the shop THEN you load the item in by clicking it in.
     
  19. Offline

    onumchuxo

    you probably need to either update bukkit or the plugin to the latest version, hes been making updates like mad if you got this yesterday this was the issue...has been fixed
     
  20. Offline

    MiHo

    Don't like the idea! It's best like it is now.


    BUT, it seems that it lets crash some other plugins. Like MyHome and Command Book? :(
     
  21. Offline

    narrowtux

    Have you got the latest version (0.3.7)?
    I have fixed client crashes and the other thing there.

    What do they do (or not do)?

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

    Zarius

    Great plugin - look forward to seeing it evolve. Just wondering if it would be possible to only request the user to type the shop-type (when placing item) when there are multiple options? I'm not using the shop bits - just the "basic" showcase and have disabled the others but still have to type "basic" everytime I place an item.
     
  23. Offline

    narrowtux

    I think I did that in 0.3.5. Please tell me if that doesn't work either ;)
     
  24. Offline

    Stanly

    how can you creat a shop? and can u shoose what the chash are going to be?
     
  25. Offline

    narrowtux

    Rightclick on a glass block while you are sneaking and an assistant will guide you through the process.
     
  26. Offline

    m5k

    Have you missed my post, narrowtux?

    Edit: Managed to replicate. It happens when the chunk is reloaded
     
  27. Offline

    narrowtux

    I'm lost for words :D
    EDIT:
    I think it has something to do with a refinement I made. I reverted this, because it created funny errors client-side (items weren't rotating anymore, just freezed).
     
  28. Offline

    m5k

    I think it needs a onchunkload event to refresh the items flying.
     
  29. Offline

    narrowtux

    Maybe this also, thank you!
     
  30. Offline

    MiHo

    /home and /i don't show any reaction. (But /warp worked) Then I reloaded all plugins and the problem still exists, but after removing your plugin, everything works again.
     
  31. Offline

    mavbear

    SUGGESTIONS:

    - make a question for admins to specify an economy bank account to link the shop to, while making finite / infinite showcases

    - notify the store owner (OR whoever's bank account is linked to the store, see above) when someone has bought something

    - create a timer of 30 seconds after a user has last bought something from a shop, so that if they return to it later, it tells them the price again, instead of just saying "You bought an item"

    - specify what the user bought when they bought it

    - PLEASE for the love of god and all that is holy, allow users to buy stacks of stackable items. this can easily be done by detecting the owner's item in hand, and if it is currently stacked. then ask the user how much of the item they want to sell at a time.
     
Thread Status:
Not open for further replies.

Share This Page