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

    Alphakid16

    Hey guys, I got a new video out on how to use Showcase for display. Check it out,
     
  3. Offline

    Vas

    2012-02-28 06:01:27 [INFO] [Showcase] Registered type [basic] (0 items loaded) 2012-02-28 06:01:27 [INFO] [Showcase] Registered type [finite] (4 items loaded) 2012-02-28 06:01:27 [INFO] [Showcase] Registered type [infinite] (7 items loaded) 2012-02-28 06:01:27 [INFO] [Showcase] Registered type [exchange] (0 items loaded) 2012-02-28 06:01:27 [INFO] [Showcase] Registered type [tutorial] (0 items loaded)
    2012-02-28 06:01:27 [WARNING] Permissions not found! All Operations are allowed!

    Permissions: http://dev.bukkit.org/server-mods/permbukkit/

    Default Permissions group:
    showcase.buy.finite: true
    showcase.buy.infinite: true
     
  4. Offline

    L24D

    narrowtux
    Has selling to shops been implemented yet? :p

    Been messing around with this plugin for several revisions in hopes that it would be added eventually.. That's the only thing keeping me from using it yet... (In both finite and infinite shops)

    That and having to use an ip filter to prevent it from downloading stuff/tracking activity without my consent...
    But nonetheless, I like the concept, and how it works :D
     
  5. so what kind of permissions this plugin uses? i just wonder wtf happening coz ive used bPermissions ALWAYS since i changed from perms 2.7.4 and ive had this plugin earlier working with bPermissions. In R4 it didnt work anymore.
     
  6. Offline

    narrowtux

    that's weird. I assure you that I haven't changed anything with the permissions. Maybe it is a Bukkit bug.
     
  7. Offline

    Ballparkandreas

    Can you make it possible to use item currency with this plugin? (like the Tradecraft plugin)

    can you make it use item currency to that would be awesome! (by the way this is my favorite shop plugin)

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

    Alexxcunningham

    the items seem a bit jumpy. before i updated, i could place them, then set another half step on to make a full block and stop the jumping while keeping the showcase. id like to do that again, but i cant in this update.

    This is what i mean by "jumpy"

    [​IMG]
     
  9. Offline

    narrowtux

    I see the prevention of slabs turning to double slabs as a feature. I couldn't yet see the items bouncing up like I saw in some videos, because of that I wasn't able to fix it yet.
     
  10. 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
     
  11. Offline

    Nexos

    This is the same problem that I have. Plus, if the block on top of the showcase is not air, items fall far away from the slab.
     
  12. Offline

    316peti

    My showcase works perfectly and i want to translate it doesn't show special UTF-8 characters.
    Example: é,ú,ü,ó,á ect.
    That's an example translate:
    Original:You can't place any showcases.
    Changed:You cán't plácé ány shówcásés.
    Written: You cn't plc ny shwcss
    I saw that this plugin has French translate but doesn't support French fonts?
     
  13. Hmm. This really IS strange. I have used this always coz i love this plugin. Don't understand. Mby i use this + essentials economy. Essentials for selling & buying, showcase for show the item.
    Also the item jumping much is a proplem, i dont like it. Can u somehow fix it?
     
  14. Offline

    Ataos

    Hi, i've a problem with exchange shop. When i'm supposed to write id of 'item you want in exchange' (371 - gold nuggets) he says : this item doesn't exist.

    Is anyone have a solution?
     
  15. Offline

    revo96

    I don't know if this a bug or so but when i left click my own shops i can buy from them and it isnt big or so but its just bit annoying but great plugin :D
     
  16. Offline

    TE5LA

    I also see things jump off blocks and then shoot back on, but they don't jump up and down, they slide off the block.

    As far as selling, which seems to be a feature in high demand, I'm talking about as a server shop, not as an individual one. I really don't see the need for individual shops in Minecraft. Most servers don't have enough players to warrant that.

    There would be no need to have to input the price because the shop would set this. It would be great if you didn't even need to input an amount. Why couldn't you be told the prices when you clicked a slab, then SHIFT+LeftClick
    to buy, SHIFT+RightClick to sell, and just keep clicking the slab for more? You could make CTRL+LeftClick and CTRL+RightClick buy or sell in multiples of 5 or something like that. I'm into not forcing people to type commands any more than necessary.

    I'd also like a config where I set the buying price and may have a selling price or a global setting to just sell at a percentage of the buying price. Also, it might be nice to have a MAX stock setting, so an item can't be sold once it reaches that stock level. IE: stone;max=5000

    Dynamic prices. Imagine a base stocking level being 1000 pieces and a max of 5000. As stock is purchased and drops below 1000 units, the prices increase and likewise decrease as inventory goes up. Something like +/- 1% deviation when inventories change by like 100 units. I know another "dynamic" shop plugin where the author doesn't seem to know how to handle this and the plugin is frankly a mess.

    See? I have ideas.
     
  17. Offline

    AlexDr0ps

    is this compatible with iconomy 6? cuz i tried it and it wasn't working
     
  18. Offline

    PeterLim

    hey man can you please make this compatible?? i really love your plugin
    EssentialsGroupBridge.jar - From Essentials plugin -Under groupmanager
     
  19. Offline

    kahlilnc

  20. Offline

    Vas

    Even world guard is out of date! Anyway. Here's your plugin's error;
    Code:
    2012-03-02 17:45:23 [SEVERE] Error occurred while enabling Showcase v0.8.1.32 (Is it up to date?)
    java.lang.NullPointerException
        at com.narrowtux.showcase.Showcase.checkForLibs(Showcase.java:242)
        at com.narrowtux.showcase.Showcase.onEnable(Showcase.java:121)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:249)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:231)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:343)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:174)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Oh and NarrowtuxLib is out of date;
    Code:
    2012-03-02 17:45:04 [SEVERE] Could not load 'plugins/narrowtuxlib.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:206)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:182)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:147)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at com.narrowtux.narrowtuxlib.NarrowtuxLib.<init>(NarrowtuxLib.java:58)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 26 more
    And an issue I reported earlier with no response;
    2012-02-28 06:01:27 [INFO] [Showcase] Registered type [basic] (0 items loaded)
    2012-02-28 06:01:27 [INFO] [Showcase] Registered type [finite] (4 items loaded)
    2012-02-28 06:01:27 [INFO] [Showcase] Registered type [infinite] (7 items loaded)
    2012-02-28 06:01:27 [INFO] [Showcase] Registered type [exchange] (0 items loaded)
    2012-02-28 06:01:27 [INFO] [Showcase] Registered type [tutorial] (0 items loaded)
    2012-02-28 06:01:27 [WARNING] Permissions not found! All Operations are allowed!

    Permissions: http://dev.bukkit.org/server-mods/permbukkit/

    Default Permissions group:
    showcase.buy.finite: true
    showcase.buy.infinite: true
     
  21. Offline

    Zombiemold

    Desperately need an update for R6.

    I don't like to be a whinner but, narrowtux! I will love you forever if you update it for us! :3
     
  22. Offline

    revo96

    Can you update to R6
     
  23. Offline

    Sorrow123444

    Please update to R6! We love your plugin!
     
  24. Offline

    edragy

    Will this be updated for 1.2?
     
  25. Offline

    Halloween96

    Plizz, Uppdate this Pl for 1.2 !!!!!!!!!!!
     
  26. Offline

    aaycapp

    Update please!!!!
     
  27. Offline

    Speedyboy235

    PLEASEEE UPDATE BUDDEHHHH PLEASSSEEE. In other words, thanks for all the hard work and time you spend on this. Please release the 1.2.3 update soon!
    PS
    LOVE this plugin. So easy for others to see what an item in the shop is!
    :D
     
  28. Offline

    aaomidi

    PLEASE PLEASE PLEASE
    1.2
     
  29. Offline

    aaycapp

    update!!
     
  30. Offline

    cazzuey

    This plugin makes my server, but it causes chunk errors and is not updated. Please Please Please Please Please fix this plugin, I beg you!!!
     
  31. Offline

    Vas

    Are you keeping up with http://dev.bukkit.org/server-mods/showcase/ ? Please quote so I'll be notified of the reply.

    2012-03-05 10:34:56 [SEVERE] Plugin Showcase is attempting to register event com/narrowtux/dropchest/api/DropChestSuckEvent, which does not exist. Ignoring events registered in class com.narrowtux.showcase.event.DropChestListener
    Permissions still not working. PermissionsBukkit 1.6
     
Thread Status:
Not open for further replies.

Share This Page