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

    xmagicx60

    Could someone help me please? My members are getting a bit impatient...
     
  3. Offline

    Jamie Tees

    Really? if it does, ill send you 5$ to say thanks if you PM me your paypal. :D
     
  4. Offline

    Lexington

    It's 1.44 already ;)
    If it does work for You donate for NoLagg :)
     
  5. Offline

    Nick392

    What can I do to fix this?

    Code:
    2011-11-10 15:28:30 [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;
        at com.narrowtux.narrowtuxlib.NarrowtuxLib.getMethod(NarrowtuxLib.java:301)
        at com.narrowtux.showcase.ShowcaseCreationAssistant.<init>(ShowcaseCreationAssistant.java:43)
        at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(ShowcasePlayerListener.java:68)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:265)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        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:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  6. Offline

    narrowtux

    Seems to be an error in iConomy.
    I didn't add support for it actively, you might have to use some bridge. Showcase only supports legacy Permissions and Super Perms (aka that what is integrated in Bukkit already)
    First off, Spout is optional.
    What permissions system are you using?
    In Showcase 2.
     
  7. Offline

    King_KYl3

    Getting this error i call this plugin a server crasher :/ crashed my whole serevr and is sucking my CPU

    2011-11-11 01:57:48 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
     
  8. Offline

    epictheiii

    could someone help with thsi problem. sicne ive tried to do showcase it keeps doing this upon startup. repeatedly. id say it repeats liek 50 times haha.
    also i dont know if they are related but i cant makea showcase.. i sneak and right click but no assistant or anything. im kind of noob with bukkit so dont respond if u arent going to help.
    Code:
    04:13 PM [SEVERE] at org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy.has(NijikoPermissionsProxy.java:163)
    04:13 PM [SEVERE] at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:80)
    04:13 PM [SEVERE] at com.gmail.nossr50.mcPermissions.herbalismAbility(mcPermissions.java:110)
    04:13 PM [SEVERE] at com.gmail.nossr50.skills.Skills.monitorSkills(Skills.java:155)
    04:13 PM [SEVERE] at com.gmail.nossr50.runnables.mcTimer.run(mcTimer.java:51)
    04:13 PM [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    04:13 PM [SEVERE] at java.lang.Thread.run(Unknown Source)
    04:13 PM [SEVERE] java.lang.NullPointerException
    04:13 PM [SEVERE] at org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy.permission(NijikoPermissionsProxy.java:180) 
     
  9. Offline

    wow4532

    Might be a stupid question, but is there a way to stop the message 'This is *'s shop' from appearing when you select a shop showcase. I'm trying to set up a city shop and I don't really want an owner.
     
  10. Offline

    King_KYl3

    2011-11-14 05:27:25 [INFO] [PLAYER_COMMAND] King_kYl3: /spawn
    2011-11-14 05:27:26 [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;
     
  11. Offline

    Ptibiscuit

    Could you use "int" instead of Material Enumeration for the item's type in ShowcaseItem class, I tried to use your plugin with "ww2 gun""s to sell guns, but I think using Material triggers bug. Thanks. :)
     
  12. Problem this is happening almost everytime I join,
    [​IMG]
    You can collect thoose diamonds

    Sorry here is the picture... View attachment 7357

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

    TheRaxofly

    Are U going to update to IConomy 6..? Or do I have to download a later version of that?
     
  14. Offline

    BCTsurvival

    how to delete your showcase?
     
  15. Offline

    Beldarak

    Hello. It seems Showcase is non-compatible with Chestlock (another plugin). Could you get an eye on it?

    I posted the same thing on the Chestlock page. Can't say which plugin causes the bug.
     
  16. Offline

    kalez

    Hey narrowtux! loving this plugin to death, but because it currently has no sell option, and while we wait for Showcase2, we are forced to use another shop plugin with this one that has the ability to sell. BUT, using Duckshop requires another plugin called Odditem, and that is conflicting with Showcase, throwing this error message:

    SEVERE] Error occurred while enabling Showcase v0.7.7.11 (Is it up to date?): info.somethingodd.bukkit.OddItem.OddItemBase cannot be cast to info.somethingodd.bukkit.OddItem.OddItem
    java.lang.ClassCastException: info.somethingodd.bukkit.OddItem.OddItemBase cannot be cast to info.somethingodd.bukkit.OddItem.OddItem
    at com.narrowtux.showcase.Showcase.onEnable(Showcase.java:167)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:413)
    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:355)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:351)
    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)

    same way you make one, shift+rightclick

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

    xXN1CKYXx

    hi when i make a showcase it says i cant make a showcase and i have put in the permission nodes ?
     
  18. Offline

    BCTsurvival

    thank you :)
     
  19. Offline

    n0waay

    Hi, i've some bug with this plugins :( :
    After a moment, the items drop a lot of items in all the world of my server :/

    Why ? What's the problem ? Cuz this plugins is amazing and don't want change :(
    (Sry for my bad english)
    Thanks.
     
  20. Offline

    kalez

    are you using NoLagg? that is a bug with the older versions of it. Get NoLagg verion 1.4.6 or higher to fix it =b

    I had the same issue a few days ago.
     
  21. Offline

    n0waay

    Thx Kalez !!!!!
     
  22. Offline

    riolu447

    my server is very dependent on showcase. but right now it is not working...we are using iCo6 and showcase says it can't find a payment method... help please?
     
  23. Offline

    Whoawsome Pie

    I am having a problem with the plugin. Can someone help me? For some reason it cant download the register.jar and cant pass the action of me trying to make a showcase to the plugin. I have latest Bukkit and Lattest Plugin. Please Help ME!
     
  24. Offline

    Xye


    Please Update to iConomy 6
     
  25. Offline

    narrowtux

    A dev build should support iConomy 6. Unfortunately, the spout build server (which also builds my plugins) is down because of the massive overload. I'll post here again when we get that sorted out.
    You can download Register.jar from here http://mirror.nexua.org/Register/latest/stable/Register.jar

     
  26. Offline

    wacossusca34

    In the 1.0.0 version of bukkit (unsupported), this plugin works however causes players that have joined for thier first time to disconnect, and never be able to connect again, until server reboot.

    My players loved this plugin, and so did I. Is there a way I can fix this? I'l get an error report soon.
     
  27. Offline

    Tealk

    you dont use the bukket dev page?
     
  28. Offline

    narrowtux

    It's just a hassle keeping 2 different locations in sync, that means I have to upload my files twice (one to my own host, one to dev.bukkit) That is #1 reason why I didn't really switch to dev.bukkit yet.
     
  29. Offline

    malabarth

    I still have pb with nolagg...
    Any idea hox to fix?

    I use the defaut configuration of showcase and nolagg..

    Thank!

    ps: you're plugin is awesome ! :D
     
  30. Offline

    narrowtux

    You have to disable autostack of items in NoLagg. BTW, the author contacted me and he said he's working on a solution on that.
     
  31. Offline

    malabarth

    Thank you! :)
     
Thread Status:
Not open for further replies.

Share This Page