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

    But you are typing basic or finite? (parenthesis=() )
     
  3. Offline

    STiChad

    Yes of course.
    I even tried without.
    I use essentials but not all the features, some are blocked.
    Could that cause a problem?
    EX:
    - essentials.eco is blocked for all users including myself.
     
  4. Offline

    QQCucumber

    Okay, sorry about my previous post, I didn't realize how basic worked because it kept trying to charge me for it. I just had to enable basicmode.

    However, I still can't get the items I put in the glass block actually be in the glass block. It always, always falls out, no matter where I put it. Restarting the client and the server makes no difference. I'm on RB798 if that makes a difference.
     
  5. Offline

    narrowtux

    I didn't test it on the latest RB yet.
     
  6. Offline

    QQCucumber

    I found out what was causing it. There's a conflict with BlocksOnGlass.

    Can this conflict be corrected? BlocksOnGlass is very useful.

    Edit: Looks like the BlocksOnGlass author is aware of it, too.
     
  7. Edit: Sorry my fault, forget to sneak.
     
  8. Offline

    narrowtux

    I already contacted the author about this and he said he would fix it.
     
  9. Offline

    Kostronor

    Got this error spaming my console:
    Code:
    2011-05-21 20:23:35 [SEVERE] Could not pass event PLAYER_CHAT to Showcase
    java.lang.NullPointerException
    	at de.moritzschmale.Showcase.ShowcasePlayer.sendMessage(ShowcasePlayer.java:104)
    	at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerChat(ShowcasePlayerListener.java:161)
    	at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:278)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:671)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
    	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    	at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  10. Offline

    narrowtux

    Oops, forgot to check if the owner of a finite showcase is logged in...
     
  11. Offline

    SuperGouge

    I've got a bug using Showcase v0.5.2 on CB #766. When a showcase is created (basic, finite or infinite) with any tool, sword, fishing rod or armor, every player can pick up the item in this showcase. Then the item is replaced and the players can have infinite items. I think it doesn't happen when placing any other item in the showcase. I also think it must be a conflict between Showcase and an other plugin (maybe VanishNoPickup ?) but I'm not really sure. Here's the list of all the plugins I have :

    Plugin List (open)
    Plugin List (open)

    AutoHelp
    BorderGuard
    ButtonWarp
    ChairCraft
    ChocolateFever
    ChopTree
    CombatTag
    CraftBukkitUpToDate
    CriticalHits
    dynmap
    Elevators
    Essentials
    EssentialsSpawn
    FenceStack
    Gastronomic
    Help
    HeroicDeath
    iChat
    iConomy
    iConomyChestShop
    Jail
    LWC
    MagicCarpet
    mcMMO
    MobBounty
    MobLoot
    NoCheat
    OddItem
    OpenInv
    p2aliases
    Permissions
    PermissionsPlus
    Showcase
    SimpleSave
    SimpleSignEdit
    Stackable
    StealthLogin
    TimeFold
    uQuest-ShowTracker
    uQuest
    VanishNoPickup
    War
    WeatherGod
    WorldEdit
    WorldGuard


    Thank you for checking this out, because I'm not sure if it's my fault, a plugin conflict or a bug.
     
  12. Offline

    narrowtux

    I guess it's Stackable, try to disable it temporally because I'm to idle to check out the source of it ATM.
     
  13. Offline

    SuperGouge

    It works ! Thank you very much. I hope you'll find a solution. Keep up the good work, your plugin is absolutely awesome !
     
  14. Offline

    MikeA

    Why did you take Item for Item shops off the todo list? Where people could buy e.g. Cobble for Gold Ingots.
     
  15. Offline

    sfxworks

    .....................
    WHY is it when I create any showcase all other players only see "This is sfxworks showcase?"
    This is seriously annoying me.

    Players have
    - showcase.basic
    - showcase.buy.*
    - showcase.finite
    With group manager and it doesn't work when they shift and right click. Or shift left click. Or left click. Or right click..............or click

    WHYYYYYYYYYY
     
  16. Offline

    narrowtux

    I can't remember putting something like this on it :D
     
  17. Offline

    MikeA

    You said in a post on another page that it was already on the to-do list... :l......
    This is something that I (and others) really really want ,_,

    Anyways can you make it where you don't need iConomy (or a cash) to make a showcase? I don't use any economy plugins and when I try to make a showcase, it says I don't have enough cash. In the config it's set to 0.0.

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

    Kostronor

    "this is <Playername's> showcase" comes out when breaking a showcase!
    you have to hit it once with left-click and then you can buy. not break it!
     
  19. Issue remains in 0.5.2:

    [00:20] <DinoThunder_X> Theres still seems to be a bug with the show case, u can't distroy the glass with the item in it anymore which is good, but some times when i walk buy it i pick the item up, alought it appears to stay in the case till i tp away and back or something,
    [00:20] <DinoThunder_X> although evn tho u pick the item up the case still thinks it's in there
     
  20. Offline

    $p!k3

    ok im using, when i sneak and right-click the glass i get the choices
    then i type (basic) and then it says invaild answer. Aborting. Anyone help :D
     
  21. Offline

    Bronski

    Point #3 of the instructions is still unclear, despite the giant font addendum beneath it :p This question will continue to be asked repeatedly.

    $p!k3, type 'basic' only, no parenthesis.
     
  22. Offline

    $p!k3

    did but my showcased item pops out of the glass doesnt stay inside D:
     
  23. Offline

    narrowtux

    It takes a while until it is in the showcase, because Minecraft makes some random coordinates when I spawn a drop.
    Have to try it...
    When you don't use economy systems, you can also set basicmode=true in the config, then it will work. I will work on a fix, though ;)

    You have to build shop showcases so they can use it. If you just build basic ones, it will only show the item, nothing more.

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

    sfxworks

    Nothing happpens when they shift left click

    I built an infinite one
     
  25. Offline

    Kostronor

    I try to explain it:
    if you have build a infinite showcase with a price of lets say 5 coins, then:
    when breaking, you get the text: "this is <Playername's> showcase"
    when hitting/leftklicking, without shift or whatever, just like pressing a button or so, then the showcase will ask you for the number of items you wanna buy, and if you just press "t" for chat and then type "10" and then press "enter", then you should have bought 10 items for 50 coins. does that explain it?
     
  26. Could you add World Guard premissions to the plugin?
    So Users can only make Showcase on their region.
     
  27. Offline

    narrowtux

    I'll try
     
    Parideis likes this.
  28. Offline

    sfxworks

    No it doesn't. The thing is the showcase doesn't ask you anything when you "press it like a button". Thats the problem.
     
  29. Offline

    MikeA

    Basic mode was true by default, wouldn't let me.
     
  30. Offline

    narrowtux

    Then I overkilled it :D
     
  31. Offline

    MikeA

    Damn... It's dead... :mad:
     
Thread Status:
Not open for further replies.

Share This Page