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

    embty

    Too bad theres no showcase for selling items for coins ie sell signs where players sell items to get money :(
     
  3. Offline

    Mercury

    After server restart, showcase will be put back to its position?
     
  4. Offline

    Sayshal

    Add a sell option, so users can SELL items they have.
    This would work so after you create the buy price it asks for sell price.
    Then add an option when you click the block to buy or sell. if you click sell, it'll ask how much you wanna sell, then take it from your inventory. I would love this.. SO much.
     
  5. Offline

    Azlodin

    Your plugin is recognizing that iConomy is currently running but not Permissions 3.1.6. As such it is defaulting to the settings as if no Permissions plugin is loaded.

    Edit: 'cause it will be asked. The permission node showcase.basic is only assigned to one group "Builder". Other groups do not inherit this access node, and Permissions replies successfully that the node is not applied to a member who is not part of "Builder", but all users are able to create a showcase. Within the Console log, there is no mention of Showcase acknowledging there is a Permission-based plug in active.

    Edit2: This appears to occur after the reload command is utilized. All the plugins including Permissions correctly disabled and were re-enabled with the command. When the server is stopped and started, the Plugin accepts the Permissions plugin.
     
  6. Offline

    sharkale

    read 1 page before comment!!!
     
  7. Offline

    Sayshal

    I saw that 10 seconds after I posted, im sorry<3 When can that be expected?
     
  8. Offline

    Chaosboylu

    Hey,i did a translation to german for this plugin :3 if you want me to,i could upload it
     
  9. Offline

    narrowtux

    It already has a german translation created by me.
     
  10. Offline

    Chaosboylu

    rly? =O didn't know that,sorry =O

    ah okay,didn't see you r german,sorry xD

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

    Raycrash

    will the new features be optional ?
    I would love a showcase classic version without all the additions, only showcases.
     
  12. Offline

    narrowtux

    They're already optional now. Just set basicmode=true in config.
     
  13. Offline

    Raycrash

    I meant, without the bukkit contrib gui stuff (which would force people to use the client mod).
     
  14. Offline

    narrowtux

    You didn't get me right, this doesn't force anyone to install the client mod.
    If you don't have it, it'll fallback to the chat assistant you already know.
     
  15. Offline

    skyforce77

  16. Offline

    kokoface

    hmmmm when i try it says "you cant place any showcases" :s
     
  17. Offline

    embty

    I know but im jsut saying too bad its still not implanted i really love this :D
     
  18. Offline

    an0x

    gibt es einen status wie weit du schon mit dem sellcase bist? ich möchte dich nicht stressen nur aus reinem intresse. und dan wollte ich noch als idee einwerfen wie währe es wen der name des showcase besitzers im kaufdialog steht?
    lg

    edit//

    ps das update in 1.8 mit

    Fixes:

    Shift+Click on items will work correctly.

    wird aber nicht dein plugin plätten oder?
     
  19. Offline

    SissyRoo

    Yes it doesn't force anyone to download and install the mod...But the server mod is incredibly laggy on larger platforms. I had to remove showcase from my server because of bukkitcontrib. Can you please add a way to stop the downloading of it along with the bukkitcontrib side of showcases features. E.g. Logblock added an option to totally stop using it when chest logging is disabled. It would be much appreciated and help me keep this wonderful mod on my server.
     
    royfort likes this.
  20. Offline

    narrowtux

    Release v0.7.3
    • Updated for Spout
    • Autosave Notifications disabled by default
    Sorry, no Sell showcase at this time. I haven't finished this one, but had to update because bukkitcontrib changed to spout and changed very much.
     
  21. Offline

    an0x

    hm after the update i cant buy something on old showcases and cant create new but i can redo old ones.
     
  22. Offline

    sharkc2

    am am having the same problem as an0x
    the error in my server is
    Code:
    21:13:07 [SEVERE] Could not pass event PLAYER_MOVE to NarrowtuxLib
    
    java.lang.NoClassDefFoundError: org/bukkitcontrib/gui/PopupScreen
    
    at com.narrowtux.event.NTLPlayerListener.onPlayerMove(NTLPlayerListener.
    
    java:20)
    
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    
    va:286)
    
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    
    a:58)
    
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    
    ava:332)
    
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
    
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Caused by: java.lang.ClassNotFoundException: org.bukkitcontrib.gui.PopupScreen
    
    at java.net.URLClassLoader$1.run(Unknown Source)
    
    at java.net.URLClassLoader$1.run(Unknown Source)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at java.net.URLClassLoader.findClass(Unknown Source)
    
    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(Unknown Source)
    
    at java.lang.ClassLoader.loadClass(Unknown Source)
    
    ... 12 more
    
    21:13:07 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    
    java.lang.NoClassDefFoundError: org/bukkitcontrib/gui/PopupScreen
    
    at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerInteract(Sho
    
    wcasePlayerListener.java:51)
    
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    
    ava:307)
    
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    
    a:58)
    
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    
    ava:332)
    
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    
    t(CraftEventFactory.java:168)
    
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    
    ava:210)
    
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    
    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:85)
    
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Caused by: java.lang.ClassNotFoundException: org.bukkitcontrib.gui.PopupScreen
    
    at java.net.URLClassLoader$1.run(Unknown Source)
    
    at java.net.URLClassLoader$1.run(Unknown Source)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at java.net.URLClassLoader.findClass(Unknown Source)
    
    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(Unknown Source)
    
    at java.lang.ClassLoader.loadClass(Unknown Source)
    
    ... 14 more
     
  23. Offline

    narrowtux

    Sorry, I'll fix that soon.
     
  24. Offline

    Stales89

    So @narrowtux, how soon do you think you will have a fully working Spout version?
     
  25. Offline

    ledhead900

    @narrowtux

    Same thing here only spout got updated to ver 1.0.1
    PHP:
    2011-08-03 14:32:32 [SEVERECould not pass event PLAYER_MOVE to Spout
    java
    .lang.ClassCastExceptionorg.bukkitcontrib.ContribNetServerHandler cannot be cast to org.getspout.spout.SpoutNetServerHandler
    at org
    .getspout.spout.player.SpoutCraftPlayer.getNetServerHandler(SpoutCraftPlayer.java:504)
    at org.getspout.spout.SpoutPlayerListener.onPlayerMove(SpoutPlayerListener.java:134)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422
    I posted this on Spouts thread as well as I actually narrowed this downt to bukkitcontrib being installed at the same time as Spout.

    Also if you do have bukkitcontrib and Spout yout world loads as a giant void.

    Solution
    Reverted Showcase to pre Sprout as its the only damn thing in my server using sprout right now. Great now even older versions from my backups are download sprout jeez well now I have to scrap this until its fixed sigh.

    Seee this is what happens when you move to things not officially released on the plugin list section. Now we have the new and the old now redundant bukkitcontrib still mainstream for its release all over every plugin.
     
  26. Offline

    fysics

    Hey, I've had a couple times when all of the showcases were completely wiped out, without a trace of ever being there. I think this has only been when there was a bigger problem with plugins or wrappers (ahem... McMyAdmin), and the server had to terminate without stopping properly. If you can't make it recover from those sorts of mishaps, can you make it do restorable backups every now and then?

    I'm also having the issues other people have already reported.

    Excellent plugin though. I think using BukkitContrib will be the better choice in the long run (unlike a lot of people).
     
  27. Offline

    ledhead900

    Sprout is bukkitcontrib according to Afforess and his team:p, it is the released version under a new name where contrib is apprently an alpha stage name.

    Issue arrises when somone tries to jump the gun and release it to production servers when the rest of the plugin world simply has not caught up.

    Meaning no offense to narrowtux he was just trying to fix an issue sprout will still fix tho I myself and others have stated why it currently is not working. Sprout is the better choice but I find it sort of a little useless while contrib is being used still in many things.
     
  28. Offline

    Ratchet

    I tried without bukkitcontrib and I was still getting a 'void world' and crashing/restarts, so it's not just using spout with bukkitcontrib that caused it. why isn't there any option to not auto-download spout in the config?
     
  29. Offline

    ledhead900

    I posted the fix for us over on sprouts thread, if u dont want to go find that here is your choice.

    Remove sprout and plugins using it or remove contrib and all that use that. Make sure u cleanly shutdown before doing any of the those two things.
     
  30. Offline

    narrowtux

    There is an option not to install spout in narrowtuxlib, but this will likely break showcase.
     
  31. Offline

    Kiborgik

Thread Status:
Not open for further replies.

Share This Page