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. i'm trying a build a updated version with the sources, but there is a lot of dependencies :/
     
  3. Offline

    Mathew Alden

    lol. Good. I was afraid you were an idiot. :D jk
     
  4. Offline

    Massimo1993

    @Misa

    please do it ç.ç
     
  5. unofficial narrowtuxLib update here : NarrowtuxLib.jar (put it in your plugins directory)
    iCo6 support ! please test it and report any issue.

    Tested with : Craftbukkit 1337 / Spout 1.0.6.461 / iConomy 6.0.5b

    I'll (try to) update Showcase soon.
     
    Woodpeckersam likes this.
  6. Offline

    Massimo1993

    @Misa

    tnks a lot ç.ç
     
  7. Offline

    Archelaus

    Please update the title to the newest RB. Then tag me in a post, otherwise this will be moved to inactive​
     
  8. Offline

    wlwhs321

    hey wats up do u know how to send message?
     
  9. Brilliant, hope you can. Remember no pressure, do it in ur own time. =)
     

  10. i get this bukkit 1337, Spout 450, iconomy 6.0.7

    Code:
    [SEVERE] Could not pass event PLUGIN_ENABLE to Register
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.register.payment.Methods.hasMethod()Z
    	at com.nijikokun.register.listeners.server.onPluginEnable(server.java:37)
    	at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:585)
    	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:964)
    	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 net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    the error stops when i disable narrowtux. I am running register as a seperate plugin.
     
  11. it's a know issue with Register, i'll fix it.
    i fixed the conflict but it requires to update showcase to make it work properly, right now i'm pretty busy but i'll do it tomorrow night ;)
     
  12. awesome thanks mate :)
     
  13. Offline

    NinjaZidane

    @Misa

    Idk if I would use my time to update Showcase as it is right now. If you hop on over to Narrow's Github you will see he is starting work on Showcase 2 ;)
     
  14. Offline

    DT_Rush

    Thanks for telling me this! This was probably the only shop plugin i liked and it would've sucked if it became inactive. Now its just time to wait:)
     
  15. Offline

    narrowtux

    DT_Rush likes this.
  16. in the meantime though it would be good to get a fix of the old system :)
     
  17. Offline

    kenneth123

    yeah, could you maybe make a quick fix for this, my players cant use showcase if they click on a showcase i get that same error
     
  18. Hi,

    Is it possible to give a permission to a member to create shop for only one object?

    Exemple : showcase.finite.45
    Player could only create shop of Bricks.

    Can we do it?
     
  19. Offline

    narrowtux

    With Showcase 2, it's easy to create a plugin for that because it has events for creating showcases. If the showcase doesn't meet the specifications you said, cancel the event and he can't place the showcase.

    @RightLegRed I updated to leet!

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

    Archelaus


    Cheers, nice plugin by the way
     
  21. Offline

    nickbouwhuis

    It keeps telling me 'You can't create any showcases'.

    Like this:

    You can't create any showcases
    [WARNING] Showcase
    Showcase creation cancelled.

    I have Bukkit (leet 1337 version) and the latest plugin buitd. What am I doing wrong?
     
  22. Offline

    narrowtux

    Did you give yourself one of the permissions stated above?

    Thanks ;)

    Important update of NarrowtuxLib arrived!
    This fixes 90% of the issues you have with showcase (iConomy 6 support, compatibility with other plugins using Register)

    Suggest new features and get WIP status on Showcase 2 here:
    http://forums.bukkit.org/threads/42508/

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

    rockiesfan1234

    I'm using
    Showcase: v0.7.7
    Bukkit: 1337
    I went to go open a new world that i had set up the showcase's on. I had them working perfectly before i opened it, then as soon as i opened it, the only thing i can do with showcase is remove a showcase. I got this error when i right click the slab:
    Code:
    17:51:51 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.getMethod()Lcom/nijikokun/register/payment/Method;
            at com.narrowtux.narrowtuxlib.NarrowtuxLib.getMethod(NarrowtuxLib.java:3
    01)
            at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:65
    )
            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 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:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    17:51:51 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.getMethod()Lcom/nijikokun/register/payment/Method;
            at com.narrowtux.narrowtuxlib.NarrowtuxLib.getMethod(NarrowtuxLib.java:3
    01)
            at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:65
    )
            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 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:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    17:51:54 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.getMethod()Lcom/nijikokun/register/payment/Method;
            at com.narrowtux.narrowtuxlib.NarrowtuxLib.getMethod(NarrowtuxLib.java:3
    01)
            at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:65
    )
            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 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:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    I think LWC, NarrowtuxLib and Spout may be causing this but not sure. Please help
     
  24. Offline

    narrowtux

    This seems to result from a too old Register.jar
    Was Register.jar in the plugins folder before you updated narrowtuxlib? if so, please remove it and download the newest from http://ci.getspout.org/jobs/Register
     
  25. Offline

    Adkos

    Seems to be a dead link.

    I have lot of errors linked to that register.jar that isn't in my plugin folder.
     
  26. Offline

    rockiesfan1234

    yes it's a broken link.

    ok i found a dl for it and did what you said and im getting this error:
    Code:
    09:07:39 [SEVERE] Could not pass event PLUGIN_ENABLE to Register
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.reg
    ister.payment.Methods.hasMethod()Z
            at com.nijikokun.register.listeners.server.onPluginEnable(server.java:37
    )
            at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.j
    ava:585)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:964)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  27. Offline

    narrowtux

    patience guys, the server where it's hosted isn't the fastest. It works ATM btw !

    You seem to have another plugin that has Register source inside without changing the package name. This leads to class collisions. Can you tell me which plugins were loaded before register?

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

    zkepfk

    Can anyone help whit this error?
    After i place a slab
    i sneak
    then when i punch slab
    minecraft kick me out with this word
    "exception java.io.ioexception received string length longer than maximum allowed (164>119)"
     
  29. Offline

    Blueskadoo

    When i sneak and right-click the half block, it just places the block ontop of the halfblock... it doesn't come up with an assistant or anything. what do i need to do?
     
  30. Offline

    narrowtux

    any exceptions on the console too?
    Do you have permissions to create showcases?

    Yeah that issue with MinecartMania is known, I tried to fix that but Minecart Mania doesn't offer arbitary cancelling of the pickups. You can just disable that feature. As I can influence the development of MinecartMania 2, I could put that in it somewhere.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 10, 2018
Thread Status:
Not open for further replies.

Share This Page