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

    DaveDee

    Notch...
     
  3. Offline

    Rickster

    Basically the only thing preventing this from working as my only shop plugin is the fact that people cannot sell to showcases. I LOVE this, it is better than any other shop plugin I have seen. I see that sell-shops are on your to-do, but I am just saying that that should be number 1. It is the thing that would make this the BEST, even better than it is now.
     
  4. Offline

    musky

    Any idea what is causing this?

    Code:
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    06.08 04:21:48 [Server] INFO     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    06.08 04:21:48 [Server] INFO     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    06.08 04:21:48 [Server] INFO     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    06.08 04:21:48 [Server] INFO     at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
    06.08 04:21:48 [Server] INFO     at com.narrowtux.event.NTLPlayerListener.onPlayerChat(NTLPlayerListener.java:15)
    06.08 04:21:48 [Server] INFO     at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:60)
    06.08 04:21:48 [Server] INFO     at de.moritzschmale.Showcase.ShowcaseCreationAssistant$1.onPageInput(ShowcaseCreationAssistant.java:44)
    06.08 04:21:48 [Server] INFO java.lang.NoClassDefFoundError: info/somethingodd/bukkit/OddItem/OddItem
    06.08 04:21:48 [Server] SEVERE Could not pass event PLAYER_CHAT to NarrowtuxLib
    This is only happening for 1 user, and he cannot see the chat at all, however he can use and see /msg. This has suddenly happened, he could see the chat earlier today. Read from bottom to top. 3rd line from bottom.

    EDIT: OK this is happening with a few players now, this needs sorting quickly. Here's a quote from an MSN chat with one of the affected players...


    "the show case told me some title and text translation was missing"

    "can't find key creation.itemtitle for translation!"
     
  5. Offline

    erdrickk

    Does this plugin HAVE to have Spout to work? it seems to auto download it - anyway to turn that off?
     
  6. Offline

    DeathJockey

    item on the showcase slab duplicates over a while of time. Is that normal?
     
  7. Offline

    Night_Fury

    can someone help me get permissions set up for this mod?

    noone can use it and im still to new to this to get it myself
     
  8. Offline

    tommygoesha

    what he meant was you can sell TO showcases not sell them in their own shop i believe.
     
  9. Offline

    Mercury

    @narrowtux - I can't uninstall BukkitContrib. It's autodownloaded by other plugin. All this BukkitContrib & Spout is really annoying as it messes everything up and gives me tons of errors. Does someone has previous Showcase without Spout and other ... crap?
     
  10. Offline

    MC-Luke

    Yes they can buy items like iron armour, its a pvp server, but there is NO way in my server to earn money, and there is no sell mode for showcase plugin
     
  11. Offline

    narrowtux

    Sorry, I added a mode which let's the user select the item when he creates a Showcase with bare hands.
    This needs OddItem, though.
     
  12. Offline

    musky

    ok, so how do i fix this?
     
  13. Offline

    narrowtux

    Install the OddItem plugin ;)
     
  14. Offline

    musky

    Great, yet another plugin i need but dont want.
     
  15. Offline

    narrowtux

    You don't have to install it, this error doesn't harm your system :p
    What's wrong with some library plugins? Do we plugin devs always have to reinvent the wheel? Can't we reuse great existing functionality of other plugins which are doing way better as if we'd recode that but missed some things?
    Do you know how much work it'd be if I'd code everything of the libs myself?
     
  16. Offline

    musky

    It doesn't harm my system, but it breaks the chat for people, until we restart. /reload doesn't work because it fucks some plugins up. Our server is fairly large, and it isn't ideal.

    I didn't mean to sound ungrateful, i appreciate all the hard work you guys put in. Thank you.
     
  17. Offline

    MC-Luke

    People need to sell items, like cobblestone, but that cant in this plugin.. please add a sell option for the players in my pvp server
     
  18. Offline

    musky

    Ok bud, I've installed Odditem but I'm still getting the same error? What am i missing here?

    Error:
    Can't find key creation.item.title for tanslation
    Can't find key creation.item.text for tanslation

    EDIT: I found a temp fix, if i sneak right click it again (when chat is disabled) the shop menu comes back, i type 0 (zero) and the chat comes back.

    Still needs fixing though, and help would be great.
     
  19. Offline

    Soulblitz

    I just tried to install this mod and it kinda broke some stuff on my server. First off it installed something called Spout and some other plugin, and one of the three managed to turn off mobs on my mob world. I don't know where to find the log because it's a hosted server, but do you have any idea what might have caused this? This mod looks amazing and I really want to use it, but I won't be able to if it comes at the price of mobs and less functionality of my server.
     
  20. Offline

    Evan Melvin

    The showcase (spout) GUI isn't showing item prices when my users attempt to buy from a showcase. Any way to disable this or make it show the prices?
     
  21. Anyone still have an older version that didn't use Spout? Spout is very buggy atm, and it causing a lot of issues.
     
  22. Offline

    umarth

  23. Offline

    Mercury

  24. Offline

    Soulblitz

    Is it Spout or BukkitContrib that's more likely to give me trouble? When I installed this mod it broke some other mods, and turned off mobs on another world, so I'm not sure which of those two things would be responsible for that.
     
  25. Offline

    Demon Boy

    It was working fine then all the sudden my server crashed and after the restart my server was rolled back causing my showcases to disappear attempting to recreate them causes the message "no zone area found" please help asap

    EDIT: Ok fixed that problem but there seems to be a problem with bukkitcontrib because restarting the server causes all shops to brake..
     
  26. Offline

    PJMS

    Can you please make builds that does not use Spout or BukkitContrib?
     
  27. Offline

    Koutacles

    This is a very annoying problem for my users D:
     
  28. Offline

    IncendiaDrakon

    Yeah, right now the GUI is completely FUBAR'd. At this point using Spoutcraft makes Showcase unusable.
     
  29. Offline

    XLighterShadowX

    specifically....?
     
  30. Offline

    Soulblitz

    What exactly does your WorldGuard "working out of the box" change? Ever since trying to install this mod, WorldGuard has completely blocked mobs spawning on all worlds, and having gone through all the settings, they all seem fine, and I have no idea how to fix it.

    Any advice would be appreciated, because not having mobs is pretty damn annoying.
     
  31. Offline

    DaveDee

    Afret 1.6 loot can't stack inside the block. It would push away
     
Thread Status:
Not open for further replies.

Share This Page