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

    JanTTuX

    NEW RB BROKE THIS : U WALK PASS SHOWCASE AND U GET INFINITE ITEMS!
     
  3. Offline

    narrowtux

    If you don't mind, look one post above :D
     
  4. Offline

    GmK

    He seemed very emotionally excited about the fact of having infinite items :D

    Anyways, I'll happily stay on my b909 until all works, we depend too much on the showcases ;)

    How hard would it be to have a probably Admin-Run showcase that *buys* items? So you go there, put your diamonds in, and get money in return. To be safe you can set a maximum of items that can be put into it, so that people dont abuse it.

    Or is that exactly like an exchange case works? :D
     
    JanTTuX likes this.
  5. I sent narrowtux a chat log, apparently this infinite items thing is a feature, not a bug <_<
     
  6. Offline

    narrowtux

    What?
    This usually means the minecraft server is down.
     
  7. Offline

    Mathew Alden

    Thanks a ton.
     
  8. Offline

    Ratchet

    what the heck is the deal with this infinite item glitch? it's a feature? what the hell?

    WRONG. myself and other players are able to loot the items. what the hell man? showcases allover my server are suddenly duping items for everybody.
     
  9. Offline

    narrowtux

    That's just crazy.
    I suggest everyone of you to downgrade bukkit to a lower version.
     
  10. Offline

    Ratchet

    is #920 ok? I see it mentioned on the previous page
     
  11. Offline

    GmK

    No, at least 909 or 911 from my findings. Havent tried higher, but those work. 920 is broken already if I remember correctly.
     
  12. Offline

    Morphy

    Is it possible to showcase items in glass blocks?
     
  13. Offline

    narrowtux

    No, notch fixed that.
     
  14. Offline

    Morphy

    ballz
     
  15. Offline

    Ratchet

    #920 working fine here
     
  16. Offline

    GmK

    Ah thanks. 920 did that iConomy derp for me, so I thought showcase was affected too.
     
  17. Offline

    Icedew123

    Showcase: v0.6.10
    Bukkit: 860
    Problem: I cant sell anything to the players on my server. I used infinite type of showcase and it worked fine. I use permissions and I added all needed nodes and they still cant buy from my shop. Im the only one wh can buy from the showcase. Why is that?

    No console errors

    I highly doubt that is has something to do with Chaircraft but just in case, thats the only plugin that has to do with slabs

    Please reply as soon as possible. Thank you :) Great plugin by the way :) Always used on our server
     
  18. Hi,

    thanks for your amazing work^^ I tried, I adopted !
    One question: will the possibility to add more than one item by block added in the next days/weeks/months/years/other ?

    I read your to-do but I don't really know if its outdated or no ;)

    Thanks :)
     
  19. Offline

    FrozenBrain


    Maybe you should upload 0.6.11 then :)

    I guess the following error should be fixed in 0.6.11:
    Code:
    java.util.FormatFlagsConversionMismatchException: Conversion = b, Flags =
        at java.util.Formatter$FormatSpecifier.failMismatch(Unknown Source)
        at java.util.Formatter$FormatSpecifier.checkBadFlags(Unknown Source)
        at java.util.Formatter$FormatSpecifier.checkGeneral(Unknown Source)
        at java.util.Formatter$FormatSpecifier.<init>(Unknown Source)
        at java.util.Formatter.parse(Unknown Source)
        at java.util.Formatter.format(Unknown Source)
        at java.util.Formatter.format(Unknown Source)
        at java.lang.String.format(Unknown Source)
        at com.narrowtux.translation.Translation.tr(Translation.java:37)
        at de.moritzschmale.Showcase.Types.BuyAssistant.onAssistantFinish(BuyAssistant.java:80)
        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:92)
        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:310)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:685)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:673)
        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:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    This error shows up from time to time (running 0.6.10 on CB build 860).
     
  20. Offline

    narrowtux

  21. Offline

    FrozenBrain

  22. Offline

    quickclay

    I just downloaded 0.6.11 from the original post, fyi.
    The following error when attempting to buy still remains.
    It happens when you type the quantity you want to buy in and hit enter.

    Show Spoiler

    2011-06-24 15:09:42 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
    java.util.FormatFlagsConversionMismatchException: Conversion = b, Flags =
    at java.util.Formatter$FormatSpecifier.failMismatch(Unknown Source)
    at java.util.Formatter$FormatSpecifier.checkBadFlags(Unknown Source)
    at java.util.Formatter$FormatSpecifier.checkGeneral(Unknown Source)
    at java.util.Formatter$FormatSpecifier.<init>(Unknown Source)
    at java.util.Formatter.parse(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.util.Formatter.format(Unknown Source)
    at java.lang.String.format(Unknown Source)
    at com.narrowtux.translation.Translation.tr(Translation.java:37)
    at de.moritzschmale.Showcase.Types.BuyAssistant.onAssistantFinish(BuyAssistant.java:80)
    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:92)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:696)
    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)
     
  23. Offline

    FrozenBrain

    Open the plugin.yml file inside the Showcase.jar file. It clearly says
    Code:
    version: 0.6.10
    So where did you get the 0.6.11 version? :confused:
     
  24. Offline

    quickclay

    In the original post. The version number just hasn't been changed in the title:
    Download & Source-Code
    Download Showcase.jar
    startup sequence (open)

    2011-06-24 15:06:34 [INFO] [Showcase] Registered type [basic] (0 items loaded)
    2011-06-24 15:06:34 [INFO] [Showcase] Registered type [finite] (6 items loaded)
    2011-06-24 15:06:34 [INFO] [Showcase] Registered type [infinite] (0 items loaded)
    2011-06-24 15:06:34 [INFO] [Showcase] Registered type [exchange] (0 items loaded)
    2011-06-24 15:06:34 [INFO] [Showcase] version 0.6.11 has been enabled.
    2011-06-24 15:06:34 [INFO] [Showcase] Payment method found (iConomy version: 5)
     
  25. Offline

    FrozenBrain

    Yes NOW it's version 0.6.11. I downloaded Showcase just after sending my post above yours and I swear it was 0.6.10. Whatever, thanks for reuploading it.
     
  26. Offline

    xXRamboNoobXx

    How do I set it so it uses Essentials Economy?
     
  27. Offline

    quickclay

    You can set prices in the .cfg file. Essentials has an iconomy bridge now, so you should be running iconomy either way. :)
     
  28. Offline

    Morphy

    I seem to have a glitch or a bug, when ever i put a weapon like a golden sword or an axe up on a showcase and move up to it, it spawns a ton in my inventory? anyone else getting this error, it is very weird
     
  29. Offline

    Mathew Alden

    I'm having a major bug. When I put an item in a showcase, it doesn't remove it from my inventory. When I take an item out of a showcase, it doesn't add it to my inventory. However, sometimes, I can lag it and it duplicates items. What did I do wrong?

    P.S. The output is all like "Null Exception."
     
  30. Offline

    craftypatch

    • Version of Showcase: v0.6.10
    • Version of Bukkit: Most recent (928)
    • Explanation of error: Items can NOT be picked up, though being near said showcased items will fill your inventory with them (As if they're being dropped rapidly). This occurs for not only showcased items, but all items dropped in the world. This happens regardless of what type of showcase you create, and the problem goes away if showcase is removed.
    • Repeat: Being within pickup distance of an item fills your inventory with said item (and no items despawn), regardless of being showcased or not.
    • console error: Nothing.
     
Thread Status:
Not open for further replies.

Share This Page