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

    malabarth

    Thank you, the currency symbol was missing in Essential's settings! :)
     
  3. Offline

    narrowtux

    and another proof that essentials is just fucked up! :D
     
  4. Offline

    4am

    Sounds good. I was also thinking maybe allow users to set up a display on a block then allow interaction with a block in front of it. That would allow glass blocks placed in front of the items to look like a display case and still allow shopping (I'm not sure if this looks good, I meant to try it out but got side-tracked).

    I, personally, really like what Essentials does, but you do need to be pretty careful to avoid conflicts (I only run the core, GeoIP, and Spawn), and errors aren't exactly graceful...

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

    SissyRoo

    There is also another bug that causes the mod to crash the server. When someone sets too high a price it will crash the server. Is there anyway you can roll out limits on how high a price can be?
     
  6. Offline

    narrowtux

    What?
    Can you give me a stack-trace (error message)?
     
  7. Offline

    Newah

    Hi! You have a very nice plugin. Unfortunately, one of the users on my server is having a bit of an issue making finite showcases. I have it enabled for his group in permissions, and indeed, all the other users are able to do it just fine, and in the same permissions group, yet when he does it nothing happens. Nothing, that is, except for this:

    Show Spoiler

    [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib
    java.lang.NullPointerException
    at de.moritzschmale.Showcase.ShowcasePlayer.getAmountOfType(ShowcasePlayer.java:61)
    at de.moritzschmale.Showcase.Types.ShowcaseAmountPage.<init>(ShowcaseAmountPage.java:17)
    at de.moritzschmale.Showcase.Types.FiniteShowcase.addPagesToCreationWizard(FiniteShowcase.java:51)
    at de.moritzschmale.Showcase.ShowcaseTypeSelectionPage.onPageInput(ShowcaseTypeSelectionPage.java:71)
    at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:47)
    at com.narrowtux.event.PlayerListener.onPlayerChat(PlayerListener.java:12)
    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:321)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:681)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    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:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:457)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:367)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  8. Offline

    Jotschie

    your plugin is awesome and at this point my favorite shop plugin currently out there.
    But how are the Sell-Showcases coming along? :D
     
  9. Thank you very much for this plugin ! It has really helped me out a lot on my server ! :)
     
  10. Offline

    Raycrash

    Hello again =)
    We are using your plugin right now, would it be possible to add a message for people who are offline when items are bought ?
    (they get the message with what was bought when they come online again).

    Thanks in advance.
     
  11. Offline

    redworld2

    I am the owner of my server and have all permissions of course. I am using bukkit 953 and just downloaded the latest showcase version. I am using Permissions 3. I tried to create a showcase but it said I wasnt allowed to do that. I looked through my log and found this
    expected <block end>, but found Scalar
    in "<reader>", line 516, column 16:
    - 'showcase.infinite'
    ^

    2011-07-15 09:55:20 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:520)
    2011-07-15 09:55:20 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    2011-07-15 09:55:20 [SEVERE] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    2011-07-15 09:55:20 [SEVERE] at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
    2011-07-15 09:55:20 [SEVERE] at
    EDIT: There was more but I deleted it since it was so damn long
     
  12. Offline

    quickclay

    FYI thread title says 0.7 instead of 0.7.1. Working great CB 977 btw.
     
  13. Offline

    GoGoZombie

    Thank you so much for this plug in!
    We've been using this plugin as a basic showcase for weeks, with another plugin for sign-based shops, thinking that Showcase stores were too complicated to set up. With the latest update of minecraft (1.7), a glitch that wipes signs, pictures and chests, wiped out our server's entire market. We finally started using this plugin as a shop as well, it works perfectly and is so facepalmingly simple. Not to mention it saves space.

    Thanks again and keep up the great work. : D
     
  14. Offline

    TheDeejay

    0.7 is working great for us :) I am wondering, is there any way to make it so Basic showcases actually hold the item being showcased? Being able to make a wall of diamond showcases with only one diamond takes away from the "bragging rights" appeal of being able to make a wall of diamond showcases, in my opinion. Great work narrowtux :D
     
  15. Offline

    Odai

    can you change anything about the creation from the shops?

    its realy realy nasty when you sneak on a wall and build with stoneslabs :confused:
     
  16. Offline

    Skyline969

    I have mine set to autosave every minute, because I'm paranoid like that. However, that also means I get the "Autosaved" message every single minute, and it clogs my log files. Is there any way to disable that message?
     
  17. Offline

    an0x

    why man? i thinks it 100% better than a shitty /shoecase set 123 124
     
  18. Offline

    Odai

    i dont think so, maybe it would be possible to add sometink like /showcase toggle
    to switch between the sneak creation and a command creation mode :D
     
  19. Offline

    Kalais

    @narrowtux
    When removing an item (quantity in the hundreds) from a finite shop I've run across a problem with them items not loading back in my inventory. It only gives back one stack of the item. I have to relog in order for the items to appear.

    Further testing shows you can remove shops even with a full inventory or when there isn't enough space for the items being returned.

    Showcase: v0.7
    CB: 953
     
  20. Offline

    Daebleak

    I'm testing this out at the moment and any player is able to refill anyone's showcase. Therefore, anyone can steal the items out of the showcase without paying.
     
  21. Offline

    narrowtux

    Are you using the latest version, 0.7.1?

    It's a minecraft bug. I have to do a workaround for this.

    That's funny I'm currently working on a Notification API in NarrowtuxLib. It's semi-persistent, which means that notifications for users that are offline will be stored (also saved to a file for reloads), but the notifications will be deleted when a user has read it.
    When a user logs in and has some notifications, the amount of unread notifications will be displayed to him.
    Then he can check them by typing /nt and then /nt [number of notification]. The notification will then be displayed and deleted.
    Showcase will use this API as soon I released the new version of NarrowtuxLib.

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

    Raycrash

    Geil Danke ;D
    Thx mate [for the non german speakers]

    Still got some problems with items which shouldnt stack (grilled pork)
    after removing the showcase x amount of items just vanish :<
     
  23. Offline

    Syntaxlb

    Always possible ? If not, you can create a command admin for close market/shop to an user ? (using the node showcase.admin)
     
  24. Offline

    Sathex

    Love your plugin. I have a request! :)

    Could you make so that you can actually sell items to it?

    Thanks
     
  25. Offline

    Nitnelave

    Yeah, I vote for extra priority on the sell showcase! this plugin is great!
     
  26. Offline

    narrowtux

    It's in the works ;)
     
  27. Offline

    Raycrash

    Ok, one more request my mate asked me if you could add the feature that you can see who is selling the stuff.
     
  28. Offline

    Gussi

    Loving it :D

    One feature request, not sure if anyone has suggested it, someone must've; Associate sign to a given showcase, which will update current item price and stock.

    If it's a low priority, or you don't like the idea, I might just fork showcase and give it a try implementing this :]
     
  29. Offline

    narrowtux

    It's a good idea, as long as the sign is optional.
    I would make it like this:
    Place a sign on the slab, Showcase automatically sees that and prints some information on the sign.
    The only problem would be that I would have to track clicks on the sign as well ;)
     
  30. Offline

    xJoshJx

    Hi, we have a whole city setup with pre-built shops, and I was wondering If you could or explain to me how I could make Showcase totally ignore Worldguard, or maybe make it read from the showcase config what is allowed from worldguard, because right now its set so 'if player canBuild' ... ... ... etc could you maybe make it so that if player canUse (like open doors, levers, buttons.) then they would beable to make a showcase in protected area?

    We have the shops protected and we just want to allow people to make showcases in the stores without having to give them permissions for inside of it.
    Would you be willing to help me out?

    Let me know as soon as possible, it's very needed.
    Please and Thank-you,
    xJoshJx
     
  31. Offline

    Kalais

    Great idea.
     
Thread Status:
Not open for further replies.

Share This Page