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

    Tr4p

    I Tryed both.
     
  3. Offline

    bobbysmithyy

    I was trying to edit showcase and I by accident screwed up the code a little while I was editing it. But I fixed it.
     
  4. Offline

    Zombiemold

    I have been having an odd issue. Showcases a re duplicating themselves, randomly.

    It's possible it happens with hard restarts, if the server locks up, but I'm not sure. These duplicates are actually showcases, so if you want to remove a showcase, you have to do it twice it seems. This has allowed for some duping.

    Additionaly, I have been having problems selling custom items. For instance Jukebukkit discs and Mob Spawners with specific spawns tied to them. Sometimes they work, and other times it just tells people whos showcase it is, and doen't show the shopping options. Also, it says that discs made by JukeBukkit or flint. Any remedy for this? Could I manually add items to some file to showcase to recognize?

    JukeBukkit: http://dev.bukkit.org/server-mods/jukebukkit/

    Creaturebox: http://dev.bukkit.org/server-mods/creaturebox/
     
  5. Offline

    King_KYl3

    Can u please fix this error :(

    s
    2011-11-04 03:50:23 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.register.payment.Methods.getMethod()Lcom/nijikokun/register/payment/Method;
     
  6. Offline

    narrowtux

    Refer to that: http://jd.bukkit.org/apidocs/org/bukkit/ChatColor.html
    no. I can't have them in glass again, because the glass block will spit it out.

    It will give them to you inside your inventory.

    You have to shut showcase down correctly or it can't despawn the items.

    Custom items won't be ever supported. Use spout if you want custom items.

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

    paulram16

    Help! I downloaded the file but I couldn't find the .Jar file... All I got was a zip folder, I looked inside but I couldn't find it!
     
  8. Offline

    Simon Welker

  9. Offline

    Novae7

  10. Offline

    dan_t3h_man

    I got this error when trying to buy stuff from the showcase and in the chat all it says is: This is Dan_t3h_man's showcase:


    Code:
    14:20:33 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at com.iCo6.util.Common.formatted(Common.java:125)
    at com.iCo6.iConomy.format(iConomy.java:468)
    at com.nijikokun.register.payment.methods.iCo6.format(iCo6.java:39)
    at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:73
    )
    at com.narrowtux.showcase.types.InfiniteShowcaseExtra.onClick(InfiniteSh
    owcaseExtra.java:40)
    at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(Showca
    sePlayerListener.java:100)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:9
    2)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  11. Offline

    Zombiemold

    I am using spout, the items in question work perfectly. Is there anything I can do personally to modify Showcase to accept and display these items properly?
     
  12. Offline

    Korrosive

    Is there any way for a user to see the owner of the store?
     
  13. Offline

    Fudgy_Fetus

    Is it just me or does this not support PermissionsEX?
     
  14. Offline

    Steve_Nanners

    I LOVE THIS PLUGIN SOOOO MUCH

    BUT!

    i wish i could exchange like 10 cobble for 1 smooth brick stone

    You can only do 1 block for 1 block ):

    Like 1 stone for 1 smooth brick stone

    Can you make it to exchange more than 1 block for a block?

    thx
     
  15. Offline

    I4cDeath

  16. Offline

    alanine


    So what would this method be?

    Thanks
     
  17. Offline

    LorrDure

    I do the french translation.
     

    Attached Files:

  18. Offline

    dantheawesome

    Shift right-click (I figured it out today :D)

    K, so first off, Great Plugin! I used to play on a server that used it back when it worked with glass! Sooooo cool!

    However, I have a problem:
    I can set up a shop perfectly, but no one but me can buy from it (not even my friend who is also an admin on our server and has the same "*" permission as me). I put in the correct permissions nodes for everyone else, but still nothing...
    does anyone have any solutions?

    - Dan

    *Edit* So, I think I know whats wrong, is it possible that the showcase.buy.infinite and showcase.buy.finite are not the right permissions nodes?
    Or does this plugin require spout to work properly?

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

    Cryt

    I would like I could sell items to infinite shop, as in chest-shop, it is possible? It allows my players to make money.
     
  20. Offline

    skotyyy

    hey man fab plugin it has made my server but cant you add a new feature a configable way for the showcases to sell auto ,so occasionally the showcase will buy x number from your stall to keep the econ going
    (if not many players on server) thanks dude [diamond]<-these are for you->[gold]
     
  21. Offline

    Simon Welker

    To-Do says: "- Sell-Showcases"

    Just a additional suggestion... We've been using RealShop to provide a selling chest at the Spawn for users, but we are removing this plugin because it's buggy and really badly maintained in my opinion. The good thing about it was... You could set the shop up to accept ALL items in an infinite amount.
    If you were to include something like this for a Showcase shop, I'd really epicly love Showcase, even more than I do already. :)
    Cheers.
     
  22. Offline

    Lexington

    Is it possible to disable chat holding while using Showcase ?
    Held chat contains messages from all chat channels (HeroChat & mcMMO & Factions)
    User is able to peek into private or admin chat , using this glitch.
     
  23. Offline

    bobbybob123

    Bugs I've found:
    1. Removing a showcase when you inventory is full, you don't get your item. (example: 64 musroom soup are for sale, I can't hold that many in my inventory and I end up losing some when I remove the showcase)
    2. Exchange showcases give an error:
    "Can't find key assistant.exchange.create.rate.text for translation!"
    I looked in my showcase-en-US.csv file and i found that:
    "assistant.exchange.create.rate.text=Enter the exchange-rate (left:right)\nExample: 2 gold for 1 diamond = 1:2"
    Why is this happening?
    3. Continuing the previous bug i noticed, if I try typing in a rate when it showed the error, 2:1 for example, I then click on the showcase after its completed it says:
    "Added 0 of [Item] to your inventory"
    Where [Item] is the item I entered when it asks me:
    "Put the item you want to get for exchange and type ok. Or type the item-name/id"
    This looks like exchange showcases aren't working? Or am I doing something wrong.
    4. I also wasn't able to exit an exchange showcase setup, I've tried typing exit, 0 and walking away. Is there a way to cancel the setup or do I have to finnish setting it up then remove it after?
    5. When removing a showcase the items you get back from it appear invisible in your inventory, this happens almost every time. The items only show up after relogging.

    Also could you please add Towny support? At the moment people can place showcases in each others towns and it gets chaotic at times.
     
  24. Offline

    ale2110

    BUG...Faillll....:mad:

    Take an item equal to q is for sale.
    be near the store jo gue leaning out your item in the store will return two items in your hand
    "Duplicate items bug."


    BUG...Faillll....:mad:

    Take an item equal to q is for sale.
    be near the store jo gue leaning out your item in the store will return two items in your hand
    "Duplicate items bug."

    BUG...Faillll....:mad:

    Take an item equal to q is for sale.
    be near the store jo gue leaning out your item in the store will return two items in your hand
    "Duplicate items bug."

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

    FearGrump

    auto clear removes these drops :(

    it doesnt actually get removed. its glitched up infront of the slab bouncing up and down.
     
  26. Offline

    Blackharaz

    Hi.

    We're using showcase since Minecraft Beta 1.6.5 and we love it. But now I've a problem. Nobody can make an finite-shop. It worked fine the time before and I didn't change the config.

    We're using bPermissions, iConomy6 and the Register.jar is there. I reinstalled it, but nothing. No finite-shop. :(
    And no Error in the log.

    Any idea?
     
  27. Offline

    dantheawesome

    O.K. so i sorta figured it out and it turns out, it was neither of those problems, it just didn't create a file for some reason until I restarted my server a few times...
     
  28. Offline

    xmagicx60

    I cannot get showcase to work period. It lets me use commands, but will not let me, or anyone else even shift-right click. Nothing happens.

    I've reinstalled showcase, narrowtuxlib, and spout and nothing happens.
     
  29. Offline

    Jamie Tees

    I must say first off this plugin is awesome, Secondly. Can you fix the dupe bug? when you drop an item in to the corresponding block (same block as you drop which is been sold) it dupes it. IF you fix this I will donate :D
     
  30. Offline

    Stephen92

    Will you ever make it to where you can sell stuff?
     
  31. Offline

    Lexington

    If you are using NoLagg , update it to 1.43 , it should fix dupes.
     
Thread Status:
Not open for further replies.

Share This Page