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

    darth2499

    yeah i hate having spout just for this plugin and because i want to play 1.8.1. Spout is the only plugin interfering with it!
     
  3. Offline

    ruifung

    Spout... Its causing inventory issues with the latest build of craftbukkit. (NOT RB)
     
  4. Offline

    sharkale

    search showcasestandalone in dev.bukkit.org
     
  5. Offline

    darth2499

    That's cool but it can't make basic. Meaning to ONLY display the item.
     
  6. Offline

    PhantomServer

    Please update to latest CB. Its not working for m right now.
    CB 1060
     
  7. Offline

    Odai

    can you please remove that it is automaticly downloading spout, i dont want that!
     
  8. Offline

    champity

    Yes me to!
     
  9. Offline

    paunk

    if you have errors, try deleting the spot.jar and spout folder..

    go to narrowtux config and change install spout = false.


    BTW, i installed it for the bukkid 1.8, but when i sneak and right click the slab, nothing showed up :(
     
  10. Offline

    champity

    ok thanks, I'm gonna try it
     
  11. Offline

    gameswereus

    Is this working with some of the newest Dev builds so far?
     
  12. @narrowtux

    any info on worldguard region checks for building showcases? I know they are working on regionbook, a better api for regions, but spoutessentials doesnt seem to have much of a problem for checking the region ids... (don't mind me, I would want all of my plugins to have region support if they could :D ).
     
  13. Offline

    hallo231

    Update the plugin please. It doesn't work.. :'(
     
  14. Offline

    Steffion

    Yeah plzz i RLLY need this for my server!
     
  15. @hallo231 @Steffion
    It works fine for me on build 1152.

    @narrowtux
    Unfortunently my users are kinda stupid and seem to think that building showcases into their walls is all fine and dandy.. up to 200-300 of them in a single building. Id love for a way to disable crouch+rclick and only have a /showcase command. I run in basic mode btw. Not using shops or anything. It would take some serious skill to accidentally doing a /command while building :)
     
    theonewithgingahair likes this.
  16. Offline

    narrowtux

    release v0.7.5
    • Spout and OddItem optional.
     
  17. Offline

    unrivaledneo

    i got this today
     
  18. Offline

    Sylvanite

    I have the same error as above.

    Then it continues into all this:
    Show Spoiler
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:36)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:69)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  19. Offline

    Cilerba

    Same error as the above.
     
  20. Offline

    mrgreaper

    dont work on cb 1163
    Code:
    01:51:27 [SEVERE] Could not load 'plugins/Showcase.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 12, column 12:
              usage: |
                   ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:39)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:69)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    tried to delete the showcase folder, incase i had an error with my cfg... nope still an error :( on the plus side it didnt try to download spout :)
     
  21. Phew, that was needed! Thanks!
    Dont get me wrong - Spout will be the future... but first it needs to grow up, hehe!
     
  22. Offline

    kalez

    Awesome! for a while there i was worried cause on our server we shaped most of the shop buildings around being able to use the slabs for this plugin. Love it
     
  23. Offline

    rob

    I get errors in the new 1060 version

    Could not load 'Plugins\Showcase.jar' in folder 'Plugins' : in "<reader>", line 12, column 12:
    then bunches of errors i don't wanna type out :eek:

    Plugins i have atm:
    Authme
    Essentials (latest)
    mChat
    LWC (latest)
    Mobbounty
    permissions
     
  24. Offline

    Stephen92

    when are you going to add in the ability to sell?
     
  25. Offline

    milanospl

    Code:
    05:12:13 [SEVERE] Could not load 'plugins/Showcase.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 12, column 12:
              usage: |
                   ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:39)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:69)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:138)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:103)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Same error as the above. :(
     
  26. Offline

    goldseed

    Me too.

    bukkit 1161
     
  27. Offline

    alfskan

    Im using CB1060, Permissions 3.x, latest recommended spout and latest yours.

    Got severe error with your plugins.

    It occured after you refactoring narrowtuxlib yesterday.

    And please why narrotuxlib updated even I set autoupdate all false?

    Autoupdate always mess up my server.

    Code:
    2011-09-21 18:28:19 [SEVERE] Could not load 'plugins\Showcase.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 12, column 12:
              usage: |
                   ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:250)
    
        at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:36)
    
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:69)
    
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
    
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:143)
    
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:110)
    
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
    
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:133)
    
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    And more errors with your plugins. It never happened when I remove your plugins.

    Code:
    2011-09-21 18:28:24 [SEVERE] Exception in thread "Thread-13"
    2011-09-21 18:28:24 [INFO] [NarrowtuxLib] v0.7.10 by [narrowtux] enabled.
    2011-09-21 18:28:24 [INFO] [NarrowtuxLib] Payment method found (iConomy version: 5)
    2011-09-21 18:28:24 [SEVERE] java.lang.NullPointerException
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore.getCRC(CRCStore.java:62)
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore$URLCheck.run(CRCStore.java:155)
    2011-09-21 18:28:24 [SEVERE] Exception in thread "Thread-15"
    2011-09-21 18:28:24 [SEVERE] java.lang.NullPointerException
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore.getCRC(CRCStore.java:62)
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore$URLCheck.run(CRCStore.java:155)
    2011-09-21 18:28:24 [SEVERE] Exception in thread "Thread-16"
    2011-09-21 18:28:24 [SEVERE] java.lang.NullPointerException
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore.getCRC(CRCStore.java:62)
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore$URLCheck.run(CRCStore.java:155)
    2011-09-21 18:28:24 [SEVERE] Exception in thread "Thread-14"
    2011-09-21 18:28:24 [SEVERE] java.lang.NullPointerException
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore.getCRC(CRCStore.java:62)
    2011-09-21 18:28:24 [SEVERE]     at org.getspout.spoutapi.io.CRCStore$URLCheck.run(CRCStore.java:155)
     
  28. Offline

    BadDog

    Seems like there is a slight problem with the 0.7.5. With the logs, narrowtux will surely be able to see what's wrong and help you out. In the meantime, you might want to grab the previous release.
     
  29. Offline

    KnurlDeSilex

    So, without spout this plugin don't have any sense?
     
  30. Offline

    Xye

    Showcase Broken with Icon 6 :(
     
  31. Offline

    SkeletonGamer

    I found a solution for Showcase 0.7.5.

    Open Showcase.jar with Winrar or other.
    Edit plugin.yml with Notepad++ or other.
    Then, replace all with:

    Code:
    name: Showcase
    version: 0.7.5.8
    author: narrowtux
    description:
    
    main: com.narrowtux.showcase.Showcase
    softdepend: [NarrowtuxLib, Spout]
    
    commands:
      showcase:
        description: Showcase related commands.
        usage: |
            /<command> <reload|load|save>
            Example: /<command> reload
            Example: /<command> load
            Example: /<command> save
    
    It is runnig on my server. ;)
     
Thread Status:
Not open for further replies.

Share This Page