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

    --GJ--

    What part isn't working, and what build of Showcase are you using? Our server is using it just fine with the new RB.
     
  3. Offline

    Insanehero





    I keep getting this error.

    Showcase 1337
    and latest RB

    0:37:12 [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib java.lang.NullPointerException at org.bukkit.craftbukkit.inventory.CraftItemStack.getEnchantments(CraftItemStack.java:171) at org.bukkit.inventory.ItemStack.clone(ItemStack.java:209) at com.narrowtux.showcase.ShowcasePlayer.remove(ShowcasePlayer.java:89) at com.narrowtux.showcase.types.FiniteShowcase.createShowcase(FiniteShowcase.java:83) at com.narrowtux.showcase.ShowcaseCreationAssistant.onAssistantFinish(ShowcaseCreationAssistant.java:91) at com.narrowtux.narrowtuxlib.assistant.Assistant.stop(Assistant.java:240) at com.narrowtux.narrowtuxlib.assistant.Assistant.onPlayerChat(Assistant.java:88) at com.narrowtux.narrowtuxlib.event.NTLPlayerListener.onPlayerChat(NTLPlayerListener.java:32) at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:295) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:726) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) 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.w(MinecraftServer.java:516) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  4. Offline

    --GJ--

    Are you using any chat plugins? That seems to be what it's having issues with.
     
  5. Offline

    Zidkon

    Is odditem conflicting with this plugin?

    Code:
    2011-12-16 00:39:03 [INFO] [NarrowtuxLib] Payment method found (iConomy version: 6)
    2011-12-16 00:39:03 [SEVERE] Error occurred while enabling Showcase v0.7.9 (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:188)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    
     
  6. Offline

    --GJ--

    Looks like it to me.
     
  7. Offline

    n0waay

    Hi, i've a problem when i create finite shop :

    Code:
    15:14:44 [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib
    java.lang.NullPointerException
            at com.narrowtux.showcase.ShowcasePlayer.getAmountOfType(ShowcasePlayer.
    java:79)
            at com.narrowtux.showcase.types.ShowcaseAmountPage.<init>(ShowcaseAmount
    Page.java:33)
            at com.narrowtux.showcase.types.FiniteShowcase.addPagesToCreationWizard(
    FiniteShowcase.java:68)
            at com.narrowtux.showcase.ShowcaseTypeSelectionPage.onPageInput(Showcase
    TypeSelectionPage.java:88)
            at com.narrowtux.narrowtuxlib.assistant.Assistant.onPlayerChat(Assistant
    .java:75)
            at com.narrowtux.narrowtuxlib.event.NTLPlayerListener.onPlayerChat(NTLPl
    ayerListener.java:32)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.ja
    va:300)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:727)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Thank.
     
  8. Offline

    --GJ--

    @n0waay - Do you have some sort of chat plugin installed? That's a common cause of issues.
     
  9. Offline

    Simon Welker

    I agree fully on this (but on the "*itemname* is not the item floating over the slab", it is for me.) It's very hard to get it, for me yet impossible as it works with neither of the two block types given. Which one is to be put in? Which one is to come out? How is the ratio meant to work? (left:right as explanation makes no sense, it should be in:eek:ut)
     
  10. Offline

    deanipops

    Do you have a eta on what time the Sell- Showcases Are coming out? :D

    Awesome Plugin Btw [diamond][diamond][diamond]
     
  11. Offline

    n0waay

    I just have 2 plugins on my server : iConomy 5 & Showcase :/
     
  12. Offline

    Zidkon

    try iConomy 6?
     
  13. Offline

    CJxD

    I'm sure I'm going to be asking the same question as a lot of people, but when are we looking at an update for 1.0.0? The current system is fairly broken on the new Bukkit release, but I'm sure you can fix it with a few pokes - if not, maybe it's a simple issue with our server?

    In addition, newbies to our server don't understand the whole 'finite' thing in the creation assistant. It's not clear what is expected of them to type, despite 'finite' being the only choice we offer them. Can we remove this part of the creation assistant? I don't mind recompiling source =]

    Thank you very, very, very much for the plugin. I'll make sure to donate sometime soon!
     
  14. Offline

    Zach667711

    This Plugin doesn't work for me for some reason... I added the permission nodes for creating the showcase and I have Permissionsbukkit. But when i try to make one nothing happens.... PLEASE HELP! :oops: Thanks in advance!

    Bukkit ver. 1597
     
  15. Offline

    kalez

    Everything works for me just fine with 0.7.9 and 1597, but my server, since updating to 1.0 has been eating ram something fierce. does this use a lot of ram or possibly have a leak? i know it can lag clients when there area a bunch of shops, but i dont know about the server itself.
     
  16. Offline

    n0waay

    Always the same things on the logs :/ I use bukkit 1602 cuz i've add block on my server (But the clean version of bukkit 1602 doesn't work too).
     
  17. Offline

    Zidkon

    Try, iChat, bPermissions, iConomy6, and ShowCase to see what happends, for me It works perfectly lets say this combination, only oddItems was causing problems
     
  18. Offline

    Pwnagedude10

    Is there a way for players to sell to the showcase
     
  19. Offline

    CBurn1234

    Dunno.... but it is an option that this plugin does not work on the newest Bukkit; if it's so....................CHANGE IT. ITS THE MOST BEAUTIFUL I HAVE EVER SEEN :D:D:D:D:D:D:D:D:D:D:D:D:D:D
     
  20. Offline

    Zidkon

    Works for me.

    @narrowtux can you make it please that when plugin disable it delete the dropped entities? If I stop my server, change the name of the JAR File to disable the plugin and starts the server again then the dropped items will be there for pickup. This issue can cause at some point having the plugin active, the item to be really dropped (for picking up) by a mistake of the map/plugin don't you think?

    Thanks
     
  21. Offline

    revo96

    When does the new version come's for 1.0.1 or does this one already include the new items
     
  22. Offline

    Miketheboss2304

    I hope it get updated too.
     
  23. Offline

    AFakeman

    What about Minecraft 1.0 builds? It doesn't work with register on 1575 build.
     
  24. Offline

    King_KYl3

    Doesn't seem the maker of this plugin is here he hasn't replied in ages
     
  25. Offline

    eddie017

    Very nice, :)
     
  26. Offline

    josip1

    what does it mean by when it says these commands were held back for you?
     
  27. Offline

    Avous

    Hmm you could test it yourself and save time than waiting for a reply.
     
  28. Offline

    Pr4w

    Works fine here. RB 1597 :)
     
  29. Offline

    kalez

    0.7.9 1597

    keep getting these occasionally. they are fixable with /showcase reload if standing in front of the showcase that its happening with:

    2011-12-22 08:43:38 [WARNING] Wrong location for [email protected] in world 'Main'!
    2011-12-22 08:43:38 [WARNING] Entity is at 232.5,47.5 (chunk 14,2) but was stored in chunk 14,3
    2011-12-22 08:43:38 [WARNING] Wrong location for [email protected] in world 'Main'!
    2011-12-22 08:43:38 [WARNING] Entity is at 232.5,47.5 (chunk 14,2) but was stored in chunk 14,3

    though, with the plugin NoLagg (or at least with 1.53, not sure about 1.53.1) a lot of them occur quite often and it fills the log

    EDIT: Holy Crap! i just found out that when it happens you can pick up the items! :confused: not good.
     
  30. Offline

    AFakeman

    14:29:37 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NoSuchMethodError: com.narrowtux.narrowtuxlib.NarrowtuxLib.getMethod()Lcom/nijikokun/register/payment/Method;
    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:335)
    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:178)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  31. Offline

    kalez

    ok so even without NoLagg this happens, but NoLagg just makes it happen way more often. When it happens, the items are not visable on the slabs, and sometimes can be picked up. A reload or /showcase reload fixes the issue, but i cant be on all day reloading.

    2011-12-22 08:43:38 [WARNING] Wrong location for [email protected] in world 'Main'!
    2011-12-22 08:43:38 [WARNING] Entity is at 232.5,47.5 (chunk 14,2) but was stored in chunk 14,3
    2011-12-22 08:43:38 [WARNING] Wrong location for [email protected] in world 'Main'!
    2011-12-22 08:43:38 [WARNING] Entity is at 232.5,47.5 (chunk 14,2) but was stored in chunk 14,3
     
Thread Status:
Not open for further replies.

Share This Page