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

    Xye

  3. Offline

    JStylow

    When i try it (on 1.8) Everything works only noone seems to able to buy anything... It only says This is JStylows Showcase...

    Help Please?
     
  4. Offline

    BadDog

    Hello there, I have your great plugin installed on our server. I made a "visitor" class, which can't build/place blocks but can interact with the world like buttons, doors, vehicles (I haven't found a way to exclude chests that are not protected with LWC).

    What bothers me is that they can buy from showcases. I'm looking for a way to stop iConomy to grant them basic money in the first place, but even without this, I'd like to know how to prevent them from interacting with the showcases. I read in the OP that "without permissions", only "players" can use "showcase.buy.finite". Is that the case for my visitors since they are not granted that permission? Or by "without permissions" you meant without a permissions plugin? Because if that's the case, they can still buy from them even with a plugin dealing with permissions :/

    I don't think I can add a negative permission :) So do you know how I could prevent this? Thanks a lot!
     
  5. Offline

    narrowtux

    you just click the showcase?
    This error should only appear when you try to remove it, i.e. when you sneak and right click.

    Without permissions means the default when you have no permissions plugin installed.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  6. I'm getting the same thing and wondering the same thing.
    iConomy set up is really basic, nothing changed.
    Only other plugin is bPermissions.
    Latest bukkit RB, latest MC server.

    It works to create but when i try to buy i get this

    Code:
    19:46:36 [WARNING] No Payment method found! Plugins that rely on this might not work! (And you might see an exception stack trace below this).
    19:46:36 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NullPointerException
            at com.narrowtux.showcase.types.RefillAssistant.updateText(RefillAssistant.java:99)
            at com.narrowtux.showcase.types.RefillAssistant.<init>(RefillAssistant.java:80)
            at com.narrowtux.showcase.types.FiniteShowcaseExtra.onRightClick(FiniteShowcaseExtra.java:88)
            at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(ShowcasePlayerListener.java:43)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:259)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
            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:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  7. Offline

    BadDog

    So howcome this player class can buy from the shops if they don't have the permission? :(
     
  8. Offline

    JStylow

    I can remove it, i can do anything with it! But noone can buy from it! Not even I can...
    Its not the permissions since its working fine.. And it worked fine for my server on 1.7.3 to!
     
  9. Offline

    narrowtux

    Are there error messages in the console when you click on a shop?
     
  10. Offline

    jozifek

    hello please when it will showcase the iConomy 6? thank you
     
  11. Offline

    Daniel Few

     
  12. Offline

    Xye

    Yes please, thank you.
     
  13. Offline

    JStylow

    14:21:59 [WARNING] No Payment method found! Plugins that rely on this might not
    work! (And you might see an exception stack trace below this).
    14:21:59 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NullPointerException
    at com.narrowtux.showcase.types.BuyAssistant.<init>(BuyAssistant.java:73
    )
    at com.narrowtux.showcase.types.InfiniteShowcaseExtra.onClick(InfiniteSh
    owcaseExtra.java:40)
    at com.narrowtux.showcase.ShowcasePlayerListener.onPlayerInteract(Showca
    sePlayerListener.java:100)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:8
    6)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    Yep...
     
  14. Offline

    Xye


    Iconomy 6 :D its not Update Showcase
     
    Alex Berndt likes this.
  15. Offline

    JStylow

    Aaah okay:) Stupid me:p

    Last question i hope... How can i download an older (5.0.3) version of iConomy? I cant find it on bukkit, only shows up with Iconomy 6 and i cant find older builds of it... Could somebody give me a link?:3
     
  16. Offline

    bellegueule

    when Iconomy6?
     
  17. Offline

    OrtwinS

    @narrowtux

    Hi there,

    I used this plugin a lot earlier for the basic functionality (show off), while using LocalShops for shops.
    Localshops seems to be no longer updated, and I discoverd Showcase has come a far way.
    Its ease of use is incredible, and with the assistant making mistakes will be near impossible.

    BUT, for it to be an actual shop plugin that I would use, I need the Sell functionality (and would like to have the ability to limit the number of shops per player).

    Both points have been on the TODO list since the first week, I even suggested one of them back then, and I really hope it will included in the next release.
     
  18. Offline

    xPashox

    Hey man!, you can actualise the showcase for CraftBukkit 1185 ? :/
     
  19. Offline

    bellegueule

    +1
     
  20. Offline

    Xye

    +2
     
  21. Offline

    THG3

    +3
     
  22. Offline

    dralletje

    +4 :D
     
  23. Offline

    BadDog

    We're using PermissionsEX on our server. Is your plugin compatible with it?
     
  24. Offline

    Nathanness

    Okay, I am using the Bukkit recommended build 1.8 with McMyAdmin, and trying to run Showcase 0.7.7 with Essentials 2.6.1, but whenever I try creating the shop or interacting with it, all the server will say is "Could not pass event PLAYER_INTERACT to Showcase", nothing else. I have removed all other plugins and isolated Essentials as the problem (because it will work when Essentials is removed), but I cannot understand why they can be incompatible when Showcase is supposed to be able to use the Economy within Essentials. Is there a way to fix this?
     
  25. Offline

    Doc

    Yet another +1
     
  26. Offline

    narrowtux

    Ca you post the whole plugin list?

    Showcase works on 1185. It's just not yet tested completely. Also, spout is optional which should allow you to update to new minecraft versions easier.
     
  27. Offline

    jozifek

    and when it will showcase the iConomy 6 hurry to run the server :( I need this plugin :)
     
  28. Offline

    Dreceon

    I have a problem, i have 30 dragoncoins (my server's money with iconomy) but i can't afford anything.
     
  29. Offline

    Xye

    and the Iconomy6 Update?
     
  30. Offline

    Nathanness

    So other than Essentials and Showcase, currently I am running Residence 2.4.2, WorldGuard 5.2.2, EssentialsChat 2.6.1, EssentialsProtect 2.6.1, EssentialsSpawn 2.6.1, BukkitCompat r15A (McMyAdmin Compatibility Plugin), NarrowtuxLib 0.8.11, ScrapBukkit 1.0.0, VoxelSniper 5.019, WorldBorder 1.4.3, WorldEdit 4.6, HomeBukkit 0.0.1, ChatBukkit 1.0.0, and godPowers 2.2. But like I said, as soon as I remove Essentials, it seems to work again (other than the fact that it can't find an economy plugin when I try to buy something).
     
  31. Offline

    Godwar101

    +1
     
Thread Status:
Not open for further replies.

Share This Page