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

    narrowtux

    This plugin is not working very good, as far as I've heard.
    The recommended version number is just the promise that this will work with that CraftBukkit version.
    However, the Bukkit API is somewhat stable and thus nearly nothing has to be changed when they update something.

    see post above, it should still work with new versions.

    Guys, that is exactly why bukkit was created!
    Not to break mods with every update (it would be a hassle, I can tell from Spoutcraft :D )

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

    SanCola

    Does it work with PermissionsBukkit? I gave my "Builders" showcase.finite: true but still only op's can create showcases :(. Anyway, this is one of the best plugins I've ever seen. Thank you.
     
  4. Offline

    worstboy32

    Having also a issue with permissions.
    I gave my players "-showcase.base" and "-showcase.*"
    But they can still create showcases and so protect there things :S
    I'm using pex and bukkit rb 1.1
    I have looked in the plugin but couldn't even change default to op :S
    Please let me know what to change to disable them for users.
     
  5. Offline

    narrowtux

    I will switch to Vault soon, so Permission issues should be a thing from the past. (Also, it supports more economy systems).
     
  6. Offline

    worstboy32

    Alright thanks.
    Hopefully it is done soon because i really love the floating items.
     
  7. Offline

    Kandor

    Hey mate, I really want this plugin but it refuses to! Here's my problem:

    When I Shift+RClick the half slab, it brings up the chat interface for me to choose, but when I type an option in (finite, infinite etc) it says it in chat and nothing happens. I am currently using Permissions 3 (old school) and iConomy 5 (the dependent plugins for Showcase as far as I can tell) are they conflicting and causing this to not work properly and is there a fix?

    I also get this error on load
    Show Spoiler
    Code:
    22:38:21 [SEVERE] Error occurred while enabling NarrowtuxLib v1.2.0 (Is it up to
    date?): com/narrowtux/narrowtuxlib/NarrowtuxLib$1
    java.lang.IllegalAccessError: com/narrowtux/narrowtuxlib/NarrowtuxLib$1
            at com.narrowtux.narrowtuxlib.NarrowtuxLib.onEnable(NarrowtuxLib.java:92
    )
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:989)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:190)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:173
    )
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:443)
            at org.bukkit.Bukkit.reload(Bukkit.java:188)
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    22)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    81)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:573)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:550)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  8. Offline

    Blackbirddddd

    I'm on PermissionsBukkit with 1.1. It won't even pop up with chat when I sneak and right-click with an item
     
  9. Offline

    KiwiAtomique

    I have a bug : 9 on 10 times I try to put an object to sell, the plugin understand the numbers of items ( You put X items ) bit nothing happen.
    Can you help me, and people of my server ?
     
  10. Offline

    Mindoiar

    I feel totally bad for asking such a question here but...

    How do i install this?

    As far as i see from all the tutorials and installation guides, you need to have a .jar file for this, namely "showcase.jar" . The download here gives me a bunch of files and folders, but no showcase.jar file :S.

    Am i missing something?
     
  11. Offline

    spoothie

    I would very much appreciate a command for creating showcases. When you are building e.g. on the brink and you are sneaking, you always create Showcases by accident. It would be cool if you could also place showcases by executing the command and e.g. hitting the slab you want the showcase to be placed on.
     
  12. Offline

    Zombiemold

    Heya @narrowtux

    I had some questions and suggestions, let me know what you think of them:

    Enchanted items: Currently there is no support for said items. Additionally, if enchantments got support for showcase, it might be in the players best interest for showcase to also list the enchantements of the item being sold.

    Potions: Showcase gives all potions a generic name of "potion". I would imagine they should display the correct name of the potions to better identify what is being sold. Here is a link that shows all attainable potions, and their ID and names: http://www.minecraftinfo.com/IDList.htm

    Monster Eggs: Similar to the potions issue above. All have generic names, and aside from colors, no way to know which egg is being sold.

    Optional Suggestions:

    Spawners: There are a few plugins out there now, that allow spawners to retain their monster type. They do this by "enchanting" them to keep meta data. It would be great if Showcase supported this behavior. SilkierTouch: http://dev.bukkit.org/server-mods/silkiertouch/ CreatureBox: http://forums.bukkit.org/threads/fix-misc-creaturebox-0-8-mob-spawners-become-tradable-1818.20854/

    Bookworm Books: Bookworm is a great plugin, and if you are so inclined, it would be amazing if Showcase would show the book titles of bookworm books. Info here: http://dev.bukkit.org/server-mods/bookworm/
     
  13. Offline

    eddie017

    I can't destroy teh shops D:
     
  14. Offline

    PrinterPlayer

    Hello, I need help. I have configured this plugin with Pex so players can only create finite shops and can buy from infinite and finite shops and they can't create finite shops. When they try to make one it says they can't place any showcases. And yes, I have edited the config.

    Plugins are:
    AdminCMD
    ChatManager
    ChestShop
    CraftBukkitUpToDate
    iAuction
    iConomy (I made it so making them costs money)
    Jobs
    Lockette
    Log
    mcMMO
    MineBackup
    ModifyWorld
    NarrowtuxLib
    PermissionsEx (I also configured the perms, yes)
    PluginMetrics
    Showcase (obviously)
    Towny
    Worldedit
    Worldguard

    PS: Also, there is something in the config file called basicusesitem, I left it at false, but what is it?
     
  15. Offline

    xboxhacks

    Does anyone know how to extract the cords from the file showcase saves?
     
  16. Offline

    Brianbloke

    Any time I shift+RClick on a Half slab, nothing physically happens, even though I have it installed on bukkit. Nor do I get any errors or any chatlog from it. it just appears as blank. Any ideas? the slabs wasn't world edited in, only spawned by me.
     
  17. Offline

    aron123

    I use PermissionsEx, i have remove permission - showcase.*
    But I can't remove my showcase. It says This is aron123's showcase.
     
  18. Offline

    City Builder

    Hi,

    Just found this error in our log, I don't know what it actually means, however I see that Showcase is involved

    Code:
    2012-01-30 03:32:18 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to Showcase
    java.lang.NumberFormatException: For input string: "10000000000000000000000000000000"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Long.parseLong(Unknown Source)
        at java.lang.Long.valueOf(Unknown Source)
        at com.iCo6.util.Common.formatted(Common.java:84)
        at com.iCo6.iConomy.format(iConomy.java:476)
        at com.nijikokun.register.narrowtuxlib.payment.methods.iCo6.format(iCo6.java:39)
        at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:73)
        at com.narrowtux.showcase.types.FiniteShowcaseExtra.onClick(FiniteShowcaseExtra.java:41)
        at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(ShowcasePlayerListener.java:100)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:507)
        at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-01-30 03:32:23 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to Showcase
    java.lang.NumberFormatException: For input string: "10000000000000000000000000000000"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Long.parseLong(Unknown Source)
        at java.lang.Long.valueOf(Unknown Source)
        at com.iCo6.util.Common.formatted(Common.java:84)
        at com.iCo6.iConomy.format(iConomy.java:476)
        at com.nijikokun.register.narrowtuxlib.payment.methods.iCo6.format(iCo6.java:39)
        at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:73)
        at com.narrowtux.showcase.types.FiniteShowcaseExtra.onClick(FiniteShowcaseExtra.java:41)
        at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(ShowcasePlayerListener.java:100)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:507)
        at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    I'm guessing that a player tried to put an item up for sale for that long number listed in the error report, and showcase can't handle it. If that is so, then maybe some way to capture the error before it gets to logging it and stopping it might be in order?
     
  19. Offline

    palmershone

    When are you going to update? We have been waiting too long and we want an update. If you dont feel like updating any more then just let us know. The server which i play on has been waiting because we love showcase and would like to use it again. Weve been waiting for so damn long, and we miss it.
    atleast tell every1 that ur not going to update so that we can find an alternative!
     
  20. Offline

    worstboy32

    Can you please fix this soon?
    Or make it temporary default to op.
    It ruined my whole spawn with showcases everywhere.
    and they use it to protect things.
     
    Mishrathium likes this.
  21. Offline

    Brianbloke

    After a few days of trying to fix it, I still haven't been able to fix it. There is no dialog popping up when I sneak(Left Shift) and right click.
    Is Spoutcraft required or something?
     
  22. Offline

    worstboy32

    Set basiconly to false so you get the dialog.
    No spout needed.
     
  23. Offline

    Brianbloke

    In what file? As theres like 4. 'basicmode' is already on false.
     
  24. Offline

    Jaderocksxxx

    Hello, Great plugin btw! Can you help me, though?

    You said I have to right-click the half step to show case an item, which it does and it comes up "You have created a Showcase" But it doesn't come up any instructions on setting the price or an assistant doesn't help me? Why is this?
     
  25. Offline

    Mishrathium

    I would humbly like to ask for integration with Town Plot Shops so shops may only be built on a shop plot.

    I run Showcase on CB1.1 R-3 and it appears to work except for Permission have broken =(

    Also the idea above to be able to sell spawners with Showcase is awesome!
     
  26. I'm having problem -- Previously, I could use chat colour codes i.e. '&9/&5' in tutorials on Showcase, but now I can't. This is a problem for me, because the [COLOUR] tags don't support purple/pink.
     
  27. Offline

    Nomanoclass

    (Sorry for my english)
    It would be well known if one places a glass block above at the place that item passes to the top which it remains in glass.
     
  28. Offline

    Zombiemold

    I would like to second this request for both issues mentioned. Towny integration, and Spawner support would be great.

    (fyi, the method that spawners use to store their animal type is through enchantments, so supporting enchantments as a whole might take care of spawners as well! :D)
     
    Mishrathium likes this.
  29. Offline

    CPxSUBZERO

    it would be cool if you could make it so people could sell their items in the showcase shop
     
  30. Offline

    Detox78

    I don't know if it is just me but permissions do not seem to work on PermissionBukkit? everyone is able to make showcases even after setting this permissions to :false
     
  31. Offline

    LlmDl

    Hey narrowtux

    We'd love to show you how to simply put in integration for towny's shop plots over in our IRC. Hop on and ask me me, the more shop plugins supporting the shop-plot the better!
     
Thread Status:
Not open for further replies.

Share This Page