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

    tinotooo

    please update
     
  3. Offline

    Austin

    Amazing plugin, Please update for Ico6 and Rb 1185.
    I was able to create a showcase, but players cannot buy from it or check its price, even with the correct perms node. All it says for them is that it was my showcase.
    Running ico6, bperms
    Show Spoiler
    Code:
    Here is an error report
           03:16:14 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NullPointerException
            at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:73)
            at com.narrowtux.showcase.types.FiniteShowcaseExtra.onClick(FiniteShowcaseExtra.java:40)
            at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(ShowcasePlayerListener.java:100)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:86)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:160)
            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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    03:16:15 [WARNING] No Payment method found! Plugins that rely on this might not work! (And you might see an exception stack trace below this).
    


    No new errors below this one.
     
  4. Offline

    PhotonLance

    add plz dupe fixing in todo list ....
     
  5. Offline

    johnnyzerox7

    I don't know if anyone has brought this up, but if you are going to use a local implementation of Nijikokun's Register plugin, please change the name so that it doesn't interfere with Register itself. I've spent two solid day's trying to figure out why my other plugins that use Register.jar were failing only to find was because of your NarrowtuxLib.jar. Thanks. :D
     
  6. Offline

    narrowtux

    It already supports SuperPermissions (the built-in permissions system). But that just applies if no legacy permissions style plugin has been found.
    Could you tell me where to get this Register.jar?
    it already works on 1.8.1
    It already works with it.
     
  7. Offline

    adurian

  8. Offline

    johnnyzerox7

  9. Offline

    revo96

    But does the new stuff in 1.8.1 also be able to place on the slabs
     
  10. Offline

    Simon Welker

    Ohai!
    Thanks for your great plugin so far, it will replace rshop on our server soon because of many reasons. I have a smaller problem with it though.

    Using Bukkit RB #1185 and Showcase RB 0.7.7 (as from the description).

    1. Refilling does not work properly. In the description, it says
    Well... That won't work. Funny thing is that it will ask myself (the shop owner) how much items I want to buy from it. Yes, I did do left-click while holding the item the shop also contains.
    So I tried right-clicking with that right item (it was logs, to test). While not crouching, but standing. What it does is come up with the refill assistant- but place the block I was holding to where I clicked on the shop. So if I have a shop containing 1 log, and hold 2 logs, then right-click, the refill assistant pops up, telling me I have got 2 items. I only hold one log then though, because the other one is being placed. And typing in "2" will just put in one log, leaving the other one being placed.

    Any chance to fix this? Or have I done something wrong? =)

    Oh, and the plugin list, I don't have a good guess which one (if one!) might be conflicting with Showcase and causing this.

     
  11. Offline

    Redstorm3265

  12. Offline

    tinotooo

    sry i mean iConomy 6 support
     
  13. Offline

    juloo

    My problem (sorry for my bad english, I'm french)
    I have 3500Euros
    I would like to buy a item that cost 1Euros
    it say : 'Vous ne pouvez pas acheter autant !' (i translate ; you can not buy as many)
     
  14. Offline

    narrowtux

    Um sorry, I haven't updated the description lately. It was changed to make it consistent with the other showcases like infinite and exchange.
    Building stuff when you rightclick shouldn't happen, though I'm not sure how bukkit exactly handles it. I will test it and then file a bug report on bukkit.
    Sorry, notch fixed glass so this isn't possible any more. In the first versions, it actually used glass (and it looked much more awesome). But since 1.6, one can't put items into glass blocks any more.

    Which economy system do you have got?

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

    Simon Welker

    Wait, this is a bukkit issue? Are you sure you're not just not catching any events that fire when placing that or such? I am a bit into Java programming, but not very well yet, and especially I have done nothing with bukkit, so you might know better. But meh...
    About the "consistent with"... Are you talking about the left-click-makes-me-buy-from-my-own-shop thing? If so: I'd rather suggest to maybe change the exchange and infinite shops to another behaviour. I mean... buying from my own shops? That does not make sense for all three kinds of shops. I think left-clicking with the item that the shop contains is a good way to handle refilling. Why not just stick to it? :)
     
  16. Offline

    narrowtux

    You don't have to hold that item that would limit usability very much. Also, many users would like to test if their shop works (imagine server owners who want to setup a spawn mall and want to test if it works without having to log into another account or asking someone).
     
  17. Offline

    Randude14

    you should add something where you can sell your item to the showcase and maybe it would prompt the owner of the showcase if he would like to buy it for a certain price.
     
  18. Offline

    Austin

    Will support for Ico7 be on the way?

    Currently I get an error stating there is no payment method upon showcase creation, and upon left clicking, it fails to initiate the event.

    The problem to the player is: Can't buy an item. No server response when left clicking.

    ico7
    showcase 0.7.7
    bpermissions
    Build 1185.
    HeroChat
     
  19. Offline

    Arubian

    i love this plugin just need to update it and support iconomy 1.7 can you update it plz asp? looking for a plugin for shops
     
  20. Offline

    Adkos

    Hi Narrowtux.

    I use your awesome plug-in for a long time (1.6) , but it starts to be weird.

    With 1.8 update, the plug-in itself works correctly. We can buy sell etc.. BUT !
    Items don't "float" correctly, and disapear after 5 minutes.

    I'm using Iconomy V7, but we can buy and sell, so I don't really think it cames from it.
    I also have worldedit and worldguard... maybe one of those, but I can't found where the problem is.

    Please help !
     
  21. Offline

    narrowtux

    I'm looking into this, maybe the detecting if an entity despawned has been changed.

    Yep.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 10, 2018
  22. Offline

    juloo

    I've iConomy, permissions, narrowtuxlib, spout, ect....
    say no error consol
     
  23. Offline

    Adkos

    Thanks ! Can't wait to test that :)
     
  24. Offline

    Shocks

    Is there anyways there could be an option to make a showcase independent from the shop. Just a visual chest of sorts?

    For example a player on my server wants to build an arena, and in the ready room for each class there is a showcase of the items you get if you pick the class. I don't really want a shop (though I can work-around by not giving buying permissions but I think it would probably still say "you don't have permissions"), I really just want a literally showcase.
     
  25. Offline

    narrowtux

    Which version of iConomy?
    Then the basicmode is just for you ;)
    in the configuration Showcase/showcase.cfg set basicmode to true.
    Also, a type without shops is always available. It's basic! ;)
     
  26. Offline

    Shocks

    Ok, cool. I thought that is what Basic mode might have been, but I wasn't sure. Are the showcases still protected?
     
  27. Offline

    CeramicTitan

    hi,
    ive tried reload showcase, loading my items a bunch of time and not all my items are showing up?
    Thanks
     
  28. Offline

    juloo

    iConomy version 6.0.6b
    Bukkit version 1185
     
  29. Offline

    xmagicx60

    I believe that iConomy V6 conflicts, I cannot seem to get the two to run side-by-side without errors.

    Code:
    03:48:52 [SEVERE] Could not pass event PLUGIN_ENABLE to NarrowtuxLib
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
        at com.nijikokun.register.payment.methods.iCo4.isCompatible(iCo4.java:61)
        at com.nijikokun.register.payment.Methods.createMethod(Methods.java:95)
        at com.nijikokun.register.payment.Methods.setMethod(Methods.java:141)
        at com.narrowtux.narrowtuxlib.event.NTLServerListener.onPluginEnable(NTLServerListener.java:52)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:569)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:948)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:416)
        at org.bukkit.Bukkit.reload(Bukkit.java:182)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:358)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:354)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:506)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:485)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    sorry for the stretch
     
  30. Offline

    Redstorm3265

    @narrowtux Ill repeat my question, If you support PermissionsBukkit then why does it say it does not detect any permissions plugin, Allowing all commands?
     
  31. Offline

    narrowtux

    That's because SuperPermissions is not a plugin. It is used as fallback when this message appears. I just didn't adjust the message as I implemented SuperPerms.
     
Thread Status:
Not open for further replies.

Share This Page