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

    Ratchet

    keep getting this on server start in the log;

    2011-05-24 01:08:34 [INFO] Wrong location! net.minecraft.server.EntityItem@164
    2011-05-24 01:08:34 [INFO] -416.5,-260.5(-27,-17) vs -26,-17
    2011-05-24 01:08:34 [SEVERE] java.lang.Exception: Stack trace
    2011-05-24 01:08:34 [SEVERE] at java.lang.Thread.dumpStack(Unknown Source)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.Chunk.a(Chunk.java:367)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.ChunkLoader.a(SourceFile:181)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.ChunkRegionLoader.a(SourceFile:42)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.ChunkProviderServer.loadChunk(ChunkProviderServer.java:132)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:62)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:92)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:60)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:448)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.Location.getBlock(Location.java:72)
    2011-05-24 01:08:34 [SEVERE] at de.moritzschmale.Showcase.ShowcaseItem.<init>(ShowcaseItem.java:42)
    2011-05-24 01:08:34 [SEVERE] at de.moritzschmale.Showcase.ShowcaseMain.load(ShowcaseMain.java:241)
    2011-05-24 01:08:34 [SEVERE] at de.moritzschmale.Showcase.ShowcaseMain.onEnable(ShowcaseMain.java:106)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:132)
    2011-05-24 01:08:34 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:110)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
    2011-05-24 01:08:34 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  3. Offline

    narrowtux

    Just wait for the next update which should come within the next few hours. I completely recoded the showcase creation assistant and because of this I think the bug should have been fixed.
    Should be fixed then too ;)
    As long as no one gets kicked and you don't have any structural damages made to your world, you should ignore this.


    @all
    I already thought about notchs fix and if I'm unable to fix his fix, I will change this so the items would lay on half-steps, pressure plates or something else like this.

    No it creates a shop itself. What exactly isn't working and can you post error messages from the console?

    Release v0.5.5
    • Completely recoded Shop Creation assistant and Buy-Assistant
    • Resulting of this, a bunch of bug should have been fixed
    With this recode, I'm able to add more shop types (like an exchange showcase) more easily.

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

    xDice

    works nice, but
    i think you are german?
    Wenn ich einen Shop mache, dann nimmt er die Items nicht aus dem Inventar. Wenn ich den Shop dann schließe, dann bekomme ich aber die angegebene Menge zurück ins Inventar. So kann ich meine items vervielfältigen.

    Code:
    2011-05-24 13:08:20 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.clone()Lorg/bukkit/inventory/ItemStack;
        at de.moritzschmale.Showcase.ShowcasePlayer.remove(ShowcasePlayer.java:152)
        at de.moritzschmale.Showcase.ShowcaseCreationAssistant.onAssistantFinish(ShowcaseCreationAssistant.java:55)
        at com.narrowtux.Assistant.Assistant.stop(Assistant.java:169)
        at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:56)
        at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerChat(ShowcasePlayerListener.java:100)
        at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:236)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:644)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
        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)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  5. Offline

    narrowtux

    Echt? Bei mir funktioniert das.
    Kommen irgendwelche Fehlermeldungen in der Konsole?
     
  6. Offline

    ledhead900

    @narrowtux

    Just a head ups mate regarding the 1.6 changes in MC

    * Fixed items in glass blocks not getting ejected properly

    Depending on how this plugins works and I really dont know so this might be N/A I would assume ther would need to be some code re writing involved to circumvent this tho.

    And here is the full list of changes for 1.6
    http://notch.tumblr.com/post/5775170768/the-changelist-for-1-6


    Btw this plugin rocks its pretty unique and I like that.
     
  7. Offline

    narrowtux

    yes, I have already seen that :(
     
  8. Offline

    ledhead900

    you have any ideas on this yet or does it all come down to how notch impliments the fix at this point.
     
  9. Offline

    Kostronor

    Got a nifty screeny for ya, got it while adding some showcases to my city :D
    [​IMG]
     
  10. Offline

    narrowtux

    Your bukkit version is too old...
     
  11. Offline

    ledhead900

    @narrowtux

    updated to 5.5 and now apprently items in glass are not visible by our users but the shop still sells.
    No console error.
    CB803
     
  12. Offline

    narrowtux

    Sometimes a simple reload helps especially when you just restarted your server.

    Release v0.5.6
    • Owners of a finite showcase now get their money again when someone bought from their shops.

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

    Kostronor

    updated to 0.5.6, there now is a issue with infinite shops!
    i can buy one and after that it said This shop is sold out...
     
  14. Offline

    narrowtux

    Fixed.
    Release v0.5.7
    • Fixed "showcase is sold out when clicking infinite shop"
     
  15. Offline

    Kostronor

    wow, thanks for this quick fix!
    Can you re-enable not canceling the refill-event after dropping/andor adding the saying +/- in chat, because now, you can hit, press i, drop one stack, press i again, and repeat this for about 50 stacks :D that sucks after time
    When you first added it, you can hit it and drop as much as you can, and dropping was canceled by walking away
     
  16. Offline

    kahlilnc

    404, :( maybe your still updating thread.
     
  17. Offline

    Kostronor

    2011-05-24 18:05:56 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
    java.lang.NullPointerException
    at de.moritzschmale.Showcase.ShowcasePlayer.sendMessage(ShowcasePlayer.java:105)
    at de.moritzschmale.Showcase.BuyAssistant.onAssistantFinish(BuyAssistant.java:73)
    at com.narrowtux.Assistant.Assistant.stop(Assistant.java:169)
    at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:56)
    at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerChat(ShowcasePlayerListener.java:100)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:278)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:671)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    this and your download-link refers to 404:D
     
  18. Offline

    ledhead900

    I did a complete server shut down before install tho ?

    Reload what ?

    I already did a full shutdown to replace the jar why would I do a reload when I get ingame.
     
  19. Offline

    EnigmaticMiner

    the download link 404s
     
  20. Offline

    narrowtux

    Sorry guys, re-upped ;)
    You can reload the server.config and all the plugins by typing /reload

    Aaand release v0.5.8
    • Fixed exception when trying to send the shop-owner a notification
    • Players who used an assistant now really get the chat after they finished it (the assistants hold the chat back, so the player who uses an assistant can't see the chat. After he finished/cancelled the assistant, the chat is being sent to him)

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

    d00ba

    Hi there,

    Once the server has been up for 5 Hours or so, people are able to pickup the items that have been showcased through the glass, simply by going close to it. The items reappear in their showcases when the server is restarted.
     
  22. Offline

    narrowtux

    Which version do you have got?
     
  23. Offline

    thecoolwolf

    i just installed this and its awesome! but is this plugin going to break after minecraft 1.6? in the changelog it said that it will fix items not getting ejected from glass blocks:oops:
     
  24. Offline

    narrowtux

    I'll try to work around this, when it doesn't work, I will switch to other block types like half-steps or pressure plates. Then, the plugin will also automatically convert the glass to the new block type for convenience.
     
    thecoolwolf likes this.
  25. Offline

    thecoolwolf

    good to hear:)
     
  26. Offline

    ddubois89

    I have something in an infinite shop style case. one of my users tried to buy one of them and he received a message " You bought -1 items for a total of -100 dollars" this then credited his account with 100 dollars. There were no errors on the console. Bug? Thanks for the plugin. and glad to hear you have a tenative solution for the patch!
     
  27. Offline

    d00ba

    0.5.7 until about 15 minutes ago, now running 0.5.8
     
  28. Offline

    Tarnacki

    whenever I restart my server for whatever reason i need to everything in the showcases goes away. Is that supposed to happen. and how can it be fixed?
     
  29. Offline

    Alex Berndt

    All I'm getting whatever I do is an error message telling me it is not safe place for my item, it will fall down? I am running 803 though.....

    Edit: Sorry my bad, was running an older version! However I do it would be useful to add a little tutorial on how to build the showcase, like what blocks to stand them on etc..
     
  30. Offline

    narrowtux

    The unsafe blocks are pretty much. First, they are all Nonsolid blocks like torches, flowers, air and so on. Then there are some buggy blocks like glass and double steps. Because sand and gravel can fall down when you remove a block below them, they are also unsafe.

    Release v0.5.9
    • Fixed a bug where users could cheat items and money
    @ddubois89 fixed.

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

    ledhead900

    Yea I never do that it always destroys Mysql plugins for me and some never start back up with out an error I don't think reloading while the server is running a bright idea and I avoid it at all costs. The only reloading I would do is a config reload with plugins that support that kinda thing.

    I don't think it's just me who have plugin reload issues since even essentials currently have full plugin reload disabled so you cannot reload all while server is running. Used to be able back on like 1.3_x builds of bukkit but too many users had errors with Mysql and other non flatfile plugins failing to start on reloads so it was removed until better way was found to do it.

    But that's what Im saying see you tell me reload when updating plugins but I shut down the server then installed the plugin then restarted the server shut it down again
    checked for config updates adjusted if needed Started server again.

    I don't think in-game reloads are necessary and as I said it is impossible on our server as essentials blocks it the supported method for reloading a plugin now is individual plugin config reloading but plugins need to implement that feature themselves.

    for instance with Permissions and Essentials I just do /essentials or /manupdate and it reloads the configs for them
    and does not make the server have any strange effects as it only calls a config update not a reload of the plugin.
     
Thread Status:
Not open for further replies.

Share This Page