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

    IncendiaDrakon

    Can anyone confirm that this works with the latest RB?
     
  3. Offline

    Nachocuban

  4. Offline

    GFlow

    Nice plugin! quick question though: I gave all my players permission to make a finite shop and buy from infinite and finite shops, but for some reason they can't buy near the spawn town. Is it because spawn protection messes it up or something? Players don't get any way of buying near the spawn, all they can do is see who made it with right click. They can use it fine away from the spawn though. I'm also using regios to protect the city, maybe that could be doing it too?
     
  5. Offline

    MetalMadness

    Nope, the dupe glitch is still there. is it because it is still made for 860?
     
  6. Offline

    an0x

    Please read the Plugin Post well:

    Known bugs


    • 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)
     
  7. There is a bug with the item glitch, the slabs had gone and the item jumping and wont be picked. I'm using Build 935.

    [​IMG]

    Tried to remove this with DropClear Plugins, but it keeps appearing. :(

    Please fix this.
     
  8. Offline

    sean_skroht

    Your plugin causes the following error with iConomy and build 935 of CraftBukkit:

    2011-06-28 16:47:10 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'money' in plugin iConomy v5.01
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:725)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:691)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:684)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    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)
    Caused by: java.lang.IllegalAccessError: tried to access method org.h2.expression.ExpressionVisitor.getNotFromResolverVisitor(Lorg/h2/table/ColumnResolver;)Lorg/h2/expression/ExpressionVisitor; from class org.h2.expression.Comparison
    at org.h2.expression.Comparison.createIndexConditions(Comparison.java:364)
    at org.h2.command.dml.Select.prepare(Select.java:804)
    at org.h2.command.Parser.prepare(Parser.java:202)
    at org.h2.command.Parser.prepareCommand(Parser.java:214)
    at org.h2.engine.Session.prepareLocal(Session.java:426)
    at org.h2.engine.Session.prepareCommand(Session.java:374)
    at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1100)
    at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)
    at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:243)
    at com.iConomy.system.Accounts.exists(Accounts.java:32)
    at com.iConomy.system.Accounts.get(Accounts.java:235)
    at com.iConomy.iConomy.getAccount(iConomy.java:437)
    at com.iConomy.iConomy.format(iConomy.java:396)
    at com.iConomy.entity.Players.showBalance(Players.java:451)
    at com.iConomy.entity.Players.onPlayerCommand(Players.java:1554)
    at com.iConomy.iConomy.onCommand(iConomy.java:218)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    Whenever I try to type /money I get the following message: "An internal error occurred while attempting to perform this command."
     
  9. Hello narrowtux, Ive just noticed that showcase spawn unstackable items as stacks.
    May I request a feature to turn that off, cos it sometimes interferes with the economy settings where carry capacity and item numbers matter!

    Thx for consideration! Keep up the great work!
     
  10. Offline

    narrowtux

    When you just give the admins the permissions showcase.*, yes.

    It's on todo, I think. When it's not, consider it to be implemented soon :)

    I don't see any Showcase classes in the stack trace. Please retry this when showcase is disabled. Maybe iConomy is just screwed at the moment because of the recent update.

    What did you do with the slabs? You should try build slabs on each block where an item lays, then remove the showcase with sneak-rightclick.
    Please note that Showcase doesn't supports plugins which do terraforming or provide different methods to destroy blocks, unless they call the BlockBreakEvent.
    Plugins of that kind include WorldEdit, VoxelSniper and some other classic-style plugins which enable instabreaks.

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

    moonjokes

    I think he's saying he wants the functionality of basic with the item being removed from inventory and placed into the block like finite.
     
  12. Offline

    narrowtux

    So he basically means that he wants that basic takes away the item as a configureable option?

    Release v0.6.12
    • Custom stack sizes now supported. Official stack sizes are delivered, look into Showcase/stacks.csv for adjusting

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

    malabarth

    Don't work! :(
    Any other idea?
     
  14. Offline

    llamaelite

    I'll quote the post where I mentioned this in more detail. Also, there was at least one other person asking for the same thing:



    True, but it still sort of spams. I can decrease the frequency, but can you please confirm that the save also occurs when the plugin is unloaded?

    Thanks!
     
  15. Offline

    mrdeadlocked

    Any update on the conflict with stackable?
     
  16. Offline

    TheDeejay

    I get the error "Can't find key assistant.exchange.create.rate.text for translation!" when I attempt to make an Exchange chest with the newest RB and Showcase version. Any idea why?

    Also, is it possible to make an infinite exchange showcase? I'd like to set up a showcase that lets you trade a large amount of Gravel for a single Flint. Thanks in advance for any help :)
     
  17. Offline

    woodzy

    @narrowtux how can i add NEW ids to this plugin?
     
  18. Offline

    narrowtux

    Of course it saves when it's unloaded ;)
    I don't really know what you mean with that. What exactly is the issue with it?
    As I understand Stackable, it just changes the maximum stack sizes?

    You mean, when new block- or item-types come out in minecraft?
    Just add the id or the name (if you know it) to the list, followed by a "," and the maximum stacks.
    Or you can simply wait until I add the correct values ;)

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

    mrdeadlocked

    Give stackable a try along with your addon. If i turn on stackable, it allows armor items to be picked up off of showcases infinitely.
     
  20. Offline

    woodzy

    @narrowtux, are you talking about in the config file? or in a .class file?
     
  21. Offline

    sean_skroht

    I already have. That's how I know the problem exists between Showcase and iConomy. When Showcase is removed iConomy works fine.
     
  22. Offline

    narrowtux

    I don't know which iConomy version you have, but my iConomy works fine with showcase.
    But I can't imagine that my plugin could break iConomy so hard that it would crash in a simple command?
    There's a config in the plugins/Showcase folder, called stacks.csv
     
  23. Offline

    OutLawGam3r

    does it work for 935? also, you should make it to where you can set a limit on certain items that they can purchase.
     
  24. Offline

    g3oliver

    if you use permissions, maybe the iconomy permission nodes are behind the showcase nodes? so maybe you have an error in the showcase nodes and so iconomy wouldn't load correctly???
     
  25. Offline

    MetalMadness

    Is this plugin still for 860 or can I use it with the latest build
     
  26. Offline

    xlilcasper

    Any plans on making the chat hold back work with HeroChat?
     
  27. Offline

    narrowtux

    It works with the latest build as well ;) (not with 827).

    Not yet... :p

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

    mrdeadlocked

    Give stackable a try along with your addon. If i turn on stackable, it allows armor items to be picked up off of showcases infinitely.
     
  29. Offline

    narrowtux

    Release v0.6.13
    • Made compatible with Stackable
    @mrdeadlocked I looked into the source of Stackable instead, and did a minor change to my code. It should work now ;)
     
  30. Offline

    mrdeadlocked

    Awesome. I missed that! Thanks alot.
     
Thread Status:
Not open for further replies.

Share This Page