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

    m5k

    No error messages with the crash. Screen freezes and client closes. Plus, items disappear after a while. Am I using the right version?
     
  3. Offline

    narrowtux

    Release v0.3.5
    • Fixed dupe bug [FIX]
    • Fixed client crash when creating finite shop [FIX]
    • Auto chooses basic when you only have basic permission. (This will insta-showcase on right-click) [FEAT]
     
  4. Offline

    woodzy

    @narrowtux
    just discovered this bug when u right click to "pull tiems from a showcase they dissaper and you dont get them back!
    so much more that 10 gold blocks :/
    EDIT: 5 min later thay returned
     
  5. Offline

    narrowtux

    Yes, fixed that too in 0.3.5.

    Fixed.
    *oh-damn-you-waiting-display-for-having-to-wait-30-seconds-between-forum-posts* :D

    Fixed in 0.3.5, sometimes the client doesn't get the change. Logout/login fixes that.

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

    m5k

    Great, thanks. This is the shop plugin our server will be using. I wanted something extremely simple and this is perfect. No item ids, commands, or signs. Love this plugin.
     
  7. Offline

    narrowtux

    And another plugin that doesn't hear for cancelled events. *hits-all-plugin-devs-of-this-kind-with-a-slapstick*
     
  8. Offline

    OrtwinS

    Nice,
    But cost for infinite doesn't make much sense... put in -whatever is worth money on your server- and you have unlimited money...
    I still vote for an (optional) hard limit on the number of cases someone can create.

    And I request a permission node for admins to create an unlimited number of cases for free.

    (I started decorating a few public buildings with this now, a pair of minecarts on display in the rail station, diamond and gold in the bank..., this will also make for great old-fashion signs outside shops, like back in times when ppl couldn't read and used pictures...)
     
  9. Offline

    MiHo

    Bug: I can't write anything anymore in chat, always getting "Finite Shop showcase sucessfull." when entering a message/command in chat.
     
  10. Offline

    OrtwinS

    I use Localshops as well, give your users only the showcase.basic permission and they wont even see the other options.
    After I told Narrowtux this one page back he already said he would make it so that when there is only the basic option available you wont have to type it.

    Free repairs? Showcase doesn't take or give items when creating/breaking showcases... not on my server that is.
    When I create I keep my item, and when I break I don't get anything back, I thought it was meant that way and it works great this way.
     
  11. Offline

    woodzy

    i cant seem to find a way to ADD items to an exacting shop like to restock it
     
  12. Offline

    m5k

    Another bug. When I buy items from the shop it says "bought for X dollars". I'm using iConomy and the currency is Tae. And also, is there a config file? Since all that's made is a showcase.csv file which is empty, even after I make a few showcases.
     
  13. Offline

    Tal-N

    This is perfect. No more need for endless signage and \ commands to see what is for sale!
     
  14. Offline

    EnigmaticMiner

    Says AccessDeniedAccess DeniedBBD805C0DFD75D58qxq3fEgLxYTIwk8CvZ6neW4cY/Yj1kws3Ce6gcTZZzbPIBMLKaeNpsquuhT9FAuF when I try to download it :/
     
  15. Offline

    narrowtux

    Released 0.3.6
    • Fixed bug that prevents users chatting after setting up a finite showcase
    @EnigmaticMiner
    Reupped, should work now ;)

    I will change that soon, I can get the currency from economy plugins, but was too idle to do it :D

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

    EnigmaticMiner

    Works now! Thanks :D
     
  17. Offline

    Torrey Leonard

    I love this plugin! I've been looking for a shop plugin that actually shows the items for a while! Mind making it so players can also SELL an item to the shop?
     
  18. Offline

    riuthamus

    I seriously love this plugin! :p
     
  19. Offline

    narrowtux

    Doesn't work at the moment, I'm not quite sure how to do that. Maybe I'll do this with a dispenser GUI interface or something like that.
    For now, you've got to remove and re-add a showcase.
     
  20. Offline

    m5k

    3.5 works perfectly for me.
     
  21. Offline

    EnigmaticMiner

    Hmmm whenever I try to make the showcase, the item I'm showcasing just doesn't go in the glass and just kinda jumps outside the glass onto the ground. :/
     
  22. Offline

    moonjokes

    Working flawlessly now. Thanks again for this amazing plugin. Love it.
     
  23. Offline

    EnigmaticMiner

    This is what happens when I try to use this plugin.

    The top rows are all 'showcases' but the items go through the wool below them and are not visible.

    The bottom rows do the same, the items go thru the bottom to just be barely seen and without the right colors. Help me? :/

    [​IMG]
     
  24. Offline

    narrowtux

    What happens when you re-login? Sometimes the entities like minecarts show on the wrong position on servers.
     
  25. Offline

    tdog158

    This plugin would be a nice addition to my server but it simply doesn't want to cooperate. Can you fix these two errors? I deleted the duplicates. PLAYER_INTERACT caused something I don't know about, and PLAYER_CHAT caused me not to be able to talk, only reply to the plugin.
    Code:
    07:37:20 [INFO] tdog158 [/192.168.1.2:58820] logged in with entity id 86
    07:37:38 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.clone()Lorg/bukkit/i
    nventory/ItemStack;
            at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerInteract(Sho
    wcasePlayerListener.java:50)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:254)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:207)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    07:37:55 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
    java.lang.NullPointerException
            at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerChat(Showcas
    ePlayerListener.java:159)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.ja
    va:236)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:646)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    07:37:58 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.clone()Lorg/bukkit/i
    nventory/ItemStack;
            at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerInteract(Sho
    wcasePlayerListener.java:50)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:254)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:207)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    07:38:13 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
    java.lang.NullPointerException
            at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerChat(Showcas
    ePlayerListener.java:195)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.ja
    va:236)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:646)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    07:38:16 [INFO] tdog158 lost connection: disconnect.quitting
    07:38:16 [INFO] Connection reset
    >
     
  26. Offline

    EnigmaticMiner

    Nope, still does the "going through block below it" thing. And the items still despawn :/
     
  27. Offline

    narrowtux

    Seems that you use a very outdated bukkit-version, there is a method missing that is very important.
     
  28. Offline

    tdog158

    Okay, thanks.
    ---
    Edit:
    Hmm, it seems I can't update my bukkit. It continues to tell me "craftbukkit.jar could not be downloaded." I know this has nothing to do with you but do you have any suggestions?
     
  29. Offline

    onumchuxo

    Good job on fixing bugs so quickly,
    one other bug i found, if you stay sneaked
    say i have 2 infinite, 1 diamond, 1 fence
    when you stay sneaked and you puch ones it tells you the price of diamond, still sneaked i punch fence and it buys, i stand up and it doesnt confirm either item still

    this doesnt happen indefinitely, nor do i think its a huge issue, maybe disable buying while sneaked?

    also i was thinking maybe add "you bought this item for "x""
     
  30. Offline

    narrowtux

    Can other players on your server see that too?
    I would come to your Server and look, would that be ok?

    Yeah, that is something that I still have to fix

    Release v0.3.7
    • When you don't move between you click 2 different shop showcases, the system will let you read the price again. [FIX]
    notifying @onumchuxo

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

    MineralMC

    Excellent, thanks for clarifying this.

    That was a /report from one of my players, can't replicate the bug.
     
Thread Status:
Not open for further replies.

Share This Page