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

    narrowtux

    Not really, with protection I just mean that no random players can make showcases where they can't build. Was a griefing issue a time ago, where players would spam buildings with showcases.
     
  3. Offline

    iMattxC

    found a bug:
    Code:
    [SIZE=12px][FONT=Arial][COLOR=rgb(0, 0, 0)]17:06:17 [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib
    java.lang.NoClassDefFoundError: info/somethingodd/bukkit/OddItem/OddItem
    at de.moritzschmale.Showcase.ShowcaseCreationAssistant$1.onPageInput(ShowcaseCreationAssistant.java:44)
    at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:60)
    at com.narrowtux.event.NTLPlayerListener.onPlayerChat(NTLPlayerListener.java:15)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:706)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    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:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    prevents me from talking
     
  4. Offline

    tinez

    Same here
     
  5. Offline

    Mike187

    Showcase downloaded Spout and another .jar file. Didn't this use to work without bukkitcontrib/spout? I use bukkit 1060.
     
  6. Offline

    HeeHeeMan11

    2011-08-23 18:41:18 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    2011-08-23 18:41:19 [INFO] Preparing level "world"
    2011-08-23 18:41:19 [INFO] Preparing start region for level 0 (Seed: 5594990380933114815)
    2011-08-23 18:41:20 [INFO] Preparing spawn area: 20%
    2011-08-23 18:41:21 [INFO] Preparing spawn area: 85%
    2011-08-23 18:41:21 [INFO] Preparing start region for level 1 (Seed: 5594990380933114815)
    2011-08-23 18:41:22 [INFO] Preparing spawn area: 53%
    2011-08-23 18:41:23 [INFO] Loaded Essentials build 2.5.6 by [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology]
    2011-08-23 18:41:24 [INFO] Downloading NarrowtuxLib.jar (71kb) ...
    2011-08-23 18:41:24 [INFO] Download finished
    2011-08-23 18:41:24 [INFO] File C:\Users\Riley\Desktop\Mineshafter Minecraft Server 1.7.3 (64-bit)\plugins\NarrowtuxLib\narrowtuxlib.cfg not found.
    2011-08-23 18:41:25 [INFO] Downloading Spout.jar (199kb) ...
    2011-08-23 18:41:26 [INFO] 38%
    2011-08-23 18:41:27 [INFO] Download finished
    2011-08-23 18:41:27 [INFO] Spout 1.0.1 has been initialized
    2011-08-23 18:41:27 [INFO] [NarrowtuxLib] v0.6.1 by [narrowtux] enabled.
    2011-08-23 18:41:27 [INFO] Version: 61
    2011-08-23 18:41:27 [INFO] [NarrowtuxLib] Payment method found (Essentials version: 2.2)
    2011-08-23 18:41:27 [INFO] [Showcase] Registered type [basic] (0 items loaded)
    2011-08-23 18:41:27 [INFO] [Showcase] Registered type [finite] (0 items loaded)
    2011-08-23 18:41:27 [INFO] [Showcase] Registered type [infinite] (0 items loaded)
    2011-08-23 18:41:27 [INFO] [Showcase] Registered type [exchange] (0 items loaded)
    2011-08-23 18:41:27 [INFO] [Showcase] Registered type [tutorial] (0 items loaded)
    2011-08-23 18:41:27 [WARNING] Permissions not found! All Operations are allowed!
    2011-08-23 18:41:27 [INFO] [Showcase] version 0.7.4 has been enabled.
    2011-08-23 18:41:27 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-08-23 18:41:27 [INFO] Done (0.836s)! For help, type "help" or "?"
    2011-08-23 18:41:37 [INFO] HeeHeeMan11 [/5.225.73.157:54807] logged in with entity id 35 at ([world] -60.34375, 74.0, -213.6875)
    2011-08-23 18:41:37 [SEVERE] java.lang.NullPointerException
    2011-08-23 18:41:37 [SEVERE] at java.lang.System.arraycopy(Native Method)
    2011-08-23 18:41:37 [SEVERE] at java.io.BufferedOutputStream.write(Unknown Source)
    2011-08-23 18:41:37 [SEVERE] at java.io.DataOutputStream.write(Unknown Source)
    2011-08-23 18:41:37 [SEVERE] at net.minecraft.server.Packet51MapChunk.a(Packet51MapChunk.java:88)
    2011-08-23 18:41:37 [SEVERE] at net.minecraft.server.Packet.a(Packet.java:116)
    2011-08-23 18:41:37 [SEVERE] at net.minecraft.server.NetworkManager.f(NetworkManager.java:107)
    2011-08-23 18:41:37 [SEVERE] at net.minecraft.server.NetworkManager.d(NetworkManager.java:263)
    2011-08-23 18:41:37 [SEVERE] at net.minecraft.server.NetworkWriterThread.run(SourceFile:107)
    2011-08-23 18:41:37 [INFO] Connection reset
    2011-08-23 18:41:38 [INFO] HeeHeeMan11 lost connection: disconnect.genericReason
    2011-08-23 18:41:41 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?

    When i try to connect I read End of Stream
     
    Zacky1 likes this.
  7. Offline

    Insanehero

    I tried this out and it still let players make show cases where they can't build.
     
  8. Offline

    Kardocraft

    Is it possible to add multicurrency support. Because I love that pluginbut I love also your plugin.
     
  9. Offline

    Ratchet

    can you release a Basic version only that doesn't require narrowtuxlib/spout/whatever else?

    have you looked into possibly fixing it so they can go inside glass again or is that just not possible because notch broke it?
     
  10. Offline

    TTlabambaTT

    Quick question When it says for example "you selected a price of 14.000000" is there anyway to configure so there isn't a load of 0's after the number? (by the way love the plugin works perfectly)

    Another question why is spout needed for this plugin?
     
  11. Offline

    Stephen92

    any news on when the sell feature will be available?
     
  12. Offline

    Zacky1

    Same for me D:
    I tried taking off Narrow thing and restart does nothing then i tried with only spout nothing -.- then with both and still nothing. HELP?!?!?!?!??!
     
  13. Offline

    Syntaxlb

    It's possible to make an option in the config for choose between different economy plugin ?

    I have iConomy AND BOSEconomy on my server, and i want to use iConomy for Showcase. But Showcase use in first BOSEconomy :s
     
  14. Offline

    OLIX

    I have a big problem with the plugin, when I want to make a basic showcase with Itemcraft's items, it show me an other item, and when the plugin autosave, it change the item's ID il the showcases.csv. I don't konw how to fix that, it's very annoying...
    Can someone can explain me how to use the plugin with mod's items?
     
  15. Offline

    GordonGrey

    Not really a huge deal, more of a small bug than anything. If the server crashes or restarts and the player in standing on a showcase they will take the item that is being displayed into their inventory and the showcase will not respawn the item.

    I just /reloadall and it will pop back to normal.
     
  16. Offline

    Elerador

    No, this isn't possible because ItemCraft (ModLoaderMP) does not make these ID's available for other plugins.
    The only option you have is waiting for the SpoutAPI, which offers new monsters and blocks in Multiplayer.
     
  17. Offline

    anklesneeze

    When i load this on my 1060 server everyone gets end of stream errors when they try to join. ok on 1000.
     
  18. Offline

    OLIX

    But Essentials can give me these items, with SignShop I can buy and sell theses items... So why Showcases can't remember a simply item's ID when it autosave?
     
  19. Offline

    NinjaGrinch

    Nijikokun doesn't even support iConomy 5 anymore, her page only shows 6 (http://dev.bukkit.org/server-mods/iconomy/). Can we please have iConomy 6 support now? I really hate repeating myself but no replies to both comments on this thread (even a bug report) and my single PM to you shows you have potentially no interest in at least responding to completely valid feedback of your plugins.
     
  20. Offline

    Sgt_Green

    ok so heres a bug.
    on my server you can sell diamonds to the server for 750 coins each.
    each person gets paid 50 coins per hour.
    and admin gets paid 5000 coins per hour.
    the admin with the highest amount of coins has 500,000 of them

    so you can imagine our surprise when we saw that a player had surpassed tha admin. not by 500,000. but by 1,700,000 coins.

    can you please get rid of the exploit where people can:

    1 , player makes a finite shop. e.g 1 diamond for 750 coins.
    2. player then punches it
    3. he then removes the show case to get the diamond back.
    4. then types in 1 (becasue the shops is still open)
    5. then gets another diamond.
    6. ????
    7. actual profit
     
  21. Offline

    PhotonLance

    you late .... I post this bug 2 weeks ago ... great plugins to turn in poops becouse have duplication

    can use price 0 coins ... and dupe all
     
  22. Offline

    Sgt_Green

    yeah i would just like to know when this will be fixed as its a major bug for a shop system.
     
  23. Offline

    King_KYl3

    How i make it so i doesnt download any other plugins Plz
     
  24. Offline

    ScottSpittle

    CB 1060 0.7.4

    Show Spoiler

    2011-08-25 18:50:29 [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib
    java.lang.NoClassDefFoundError: info/somethingodd/bukkit/OddItem/OddItem
    at de.moritzschmale.Showcase.ShowcaseCreationAssistant$1.onPageInput(ShowcaseCreationAssistant.java:44)
    at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:60)
    at com.narrowtux.event.NTLPlayerListener.onPlayerChat(NTLPlayerListener.java:15)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:706)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    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:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)


    Show Spoiler

    2011-08-25 18:44:36 [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib
    java.lang.NoClassDefFoundError: info/somethingodd/bukkit/OddItem/OddItem
    at de.moritzschmale.Showcase.ShowcaseCreationAssistant$1.onPageInput(ShowcaseCreationAssistant.java:44)
    at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:60)
    at com.narrowtux.event.NTLPlayerListener.onPlayerChat(NTLPlayerListener.java:15)
    at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:279)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:706)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    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:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: info.somethingodd.bukkit.OddItem.OddItem
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
    ... 16 more
     
  25. Offline

    TheMobile79

    No compatible with 1060 :((
     
  26. Offline

    Stephen92

    I just wanna be able to sell stuff.
     
    JoshP95 likes this.
  27. I'm running 1060, and it works perfectly for me.
     
  28. Offline

    pixelated_me

    [/5.240.112.205:53147] logged in with entity id 5 at ([tranquility village 1] -65.8125, 70.5, 454.90625)
    2011-08-26 16:02:47 [SEVERE] java.lang.NullPointerException
    2011-08-26 16:02:47 [SEVERE] at java.lang.System.arraycopy(Native Method)
    2011-08-26 16:02:47 [SEVERE] at java.io.BufferedOutputStream.write(Unknown Source)
    2011-08-26 16:02:47 [SEVERE] at java.io.DataOutputStream.write(Unknown Source)
    2011-08-26 16:02:47 [SEVERE] at net.minecraft.server.Packet51MapChunk.a(Packet51MapChunk.java:88)
    2011-08-26 16:02:47 [SEVERE] at net.minecraft.server.Packet.a(Packet.java:116)
    2011-08-26 16:02:47 [SEVERE] at net.minecraft.server.NetworkManager.f(NetworkManager.java:107)
    2011-08-26 16:02:47 [SEVERE] at net.minecraft.server.NetworkManager.d(NetworkManager.java:263)
    2011-08-26 16:02:47 [SEVERE] at net.minecraft.server.NetworkWriterThread.run(SourceFile:107)
    2011-08-26 16:02:47 [INFO] Connection reset
    2011-08-26 16:02:48 [INFO] pixelated_me lost connection: disconnect.genericReason
    2011-08-26 16:02:51 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?


    when i try to log in this comes up on the console and in minecraft it says "connection lost. End of stream"

    please help, this looks epic :D
     
  29. Offline

    narrowtux

    Yeah, update Spout to 1.0.2 ;)
     
  30. @narrowtux

    Is there any progress on "Sell-Showcases" & "Spawn multiple items in the same glass block"?
    I'll would greatly appreciate

    Cordialy

    Edit: I forgot the "?" --' It's seem to be aggressive without this <<
     
  31. Offline

    pixelated_me

    Is there a way to not allow spout because it looks complicated and i am a noob :( + there are no instructions on the spout forum!!!
     
Thread Status:
Not open for further replies.

Share This Page