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

    Plumeex

    Hi.
    I'm Admin and I have all permissions so how can I remove other player's showcase ?
    Thanks.
     
  3. Offline

    narrowtux

    Can you post the whole exception trace?
    There is a permission, showcase.admin , which lets you remove all other showcases as if they were yours.
    You have a permissions system and it's not giving you the permission to use showcase.* nodes.
    Yep. OddItem has changed something so the OddItem support is screwed ATM.
    You should look if there are errors when you reload/stop the server. That should be the cause of items not being despawned on shutdown.
     
  4. Offline

    T4L_Goose

    Can you make an option to disable chat being held back? It's a nice feature, but my server uses factions, and people can use the feature to read faction-chat messages between faction members, so it's a little cheap.
     
  5. Offline

    Plumeex

    I try to remove them, but it doesn't work...
    And strangely I already did it with another, a long time ago, and it worked...
    Maybe it's a bug of the server. I will dig under these items to make them fall in the Void :D
     
  6. Offline

    xmagicx60

    What jar do I need to import for this?

    import com.nijikokun.register.narrowtuxlib.payment.Method;
    import com.nijikokun.register.narrowtuxlib.payment.Method.MethodAccount;
     
  7. Offline

    revo96

    i have a big issue
    I have bukkit 1337
    I have showcase v0.7.7 (1337)
    If can just make a finite shop but when you want to refill it does a anouncement like if its somebody else his showcase but its yours but you also get the buy assistent an you can even buy from yourself
    iconomy6, creaturebox, homex, worldedit, naturalgiants, spawnmob, register, logblock, plgsetspawn, mcmmo, narrowtuxlib, permissionbukkit, lwc, mcbans
    do you have any idea whats causing this?
    with friendly greets revo58
     
  8. Offline

    narrowtux

    If you have maven, all you have to do it call "mvn clean package" or run that via eclipse.
    If you don't have it, get NarrowtuxLib.jar from http://ci.getspout.org/job/NarrowtuxLib/
     
  9. Offline

    xmagicx60

    Have narrowtux lib, but those two still stand out.
     
  10. Offline

    narrowtux

    It may not work because the builds fail on spoutdev ATM.
    You could checkout an older commit on the git repo and use that. Git should handle that nicely.
    To do so, type git checkout <commitid> where commitid is the hash number you can find on each commit on github.com.
     
  11. Offline

    bobbysmithyy

    what is the narrowtuxlib that always downloads automatically? Is it required?
     
  12. Offline

    natkemon

    it'd be good if there was selling as well. Maybe next update, you can add selling aswell
     
  13. Offline

    OLIX

    And how to fix it ? The plugin become problematic and useless for me with this bug...
     
  14. Offline

    King_KYl3

    This is good to crash any server :/ mine lags out this is the error


    2011-11-02 02:51:34 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.register.payment.Methods.getMethod()Lcom/nijikokun/register/payment/Method;
    2011-11-02 02:51:35 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.IncompatibleClassChangeError: Expected static method com.nijikokun.register.payment.Methods.getMethod()Lcom/nijikokun/register/payment/Method;
     
  15. Offline

    Lexington

    This is vanilla 1.7.x bug (chest & sign wiping on chunk reload) , it was repaired in 1.8 afaik.
    There were some plugins attempts to deal with this error (like bShot) but none of them was working correctly.
     
  16. Offline

    Simon Welker

    I wanna use the tutorial type with some colors, but it's really confusing how they are named. Is this the bukkit naming? If so... Where do I get a list which color is what? Neither [MAGENTA], [PURPLE] nor [PINK] do work.
    I'm using mChat, and other colors work after I found out their names, DARK_RED and AQUA and such.

    http://www.minecraftwiki.net/wiki/Color_codes#Color_Codes

    Thanks for your great plugin so far. Cheers.
     
  17. Offline

    Tr4p

    Could you maybe tell me how far you are with the Sell-Showcases ?
     
  18. Offline

    monotonehell

    Just a suggestion; one of my players complained that they can no longer make slab roofs or slab bridges as they need to hold shift while placing the slabs in order to not fall. Perhaps a command for users so they can build as usual when they are not making a showcase?

    Something like /showcase toggle/on/off ?
     
  19. Offline

    LorrDure

    I realy like this mod, I will translate in french,
    Coud you give me the file for translate ?
     
  20. Offline

    bobbysmithyy

    This is actually the greatest plugin ever. Do you think it would be possible to make this on other blocks besides half steps?
     
  21. Offline

    Simon Welker

    After a bit research in the CraftBukkit sourcecode, I found this:

    Code:
    replacements.put(ChatColor.BLACK, ANSICodes.attrib(0));
            replacements.put(ChatColor.DARK_BLUE, ANSICodes.attrib(34));
            replacements.put(ChatColor.DARK_GREEN, ANSICodes.attrib(32));
            replacements.put(ChatColor.DARK_AQUA, ANSICodes.attrib(36));
            replacements.put(ChatColor.DARK_RED, ANSICodes.attrib(31));
            replacements.put(ChatColor.DARK_PURPLE, ANSICodes.attrib(35));
            replacements.put(ChatColor.GOLD, ANSICodes.attrib(33));
            replacements.put(ChatColor.GRAY, ANSICodes.attrib(37));
            replacements.put(ChatColor.DARK_GRAY, ANSICodes.attrib(0));
            replacements.put(ChatColor.BLUE, ANSICodes.attrib(34));
            replacements.put(ChatColor.GREEN, ANSICodes.attrib(32));
            replacements.put(ChatColor.AQUA, ANSICodes.attrib(36));
            replacements.put(ChatColor.RED, ANSICodes.attrib(31));
            replacements.put(ChatColor.LIGHT_PURPLE, ANSICodes.attrib(35));
            replacements.put(ChatColor.YELLOW, ANSICodes.attrib(33));
            replacements.put(ChatColor.WHITE, ANSICodes.attrib(37));
    
    So here we have it. Yay. :)
     
  22. Offline

    Doc

    It would be SWEET if we could have them on Glass Blocks again (but you would most likely have to use BlocksOnGlass, which we do anyway)
     
  23. Offline

    Novae7

    hi there... i think i found a bug ;)

    if i rightklick on an showcase i have the option to refill it
    when i now shift and rightklick the shop will be removed an there drop no items

    [ rightklick on own showcase -> shift+rk -> shop remove -> no itemdrops]

    Novae
     
  24. Offline

    Tr4p

    tryed and works fine by me
     
  25. Offline

    bobbysmithyy

    I'm getting an error when showcasing pickaxes it duplicates the pickaxe on the showcase so 2 of them are floating. It's weird cuz it's only happening with pickaxes and bread everything else is fine.
     
  26. Offline

    Tr4p

    tryed and works fine again.
     
  27. Offline

    bobbysmithyy

    I only started getting this bug after I installed the plugin SignLift
     
  28. Offline

    Tr4p

    Dont you use Commandbook?
    It also has a lift feature.

    /edit testet with SignLift . No Bugs. Both Plugins works fine.
     
  29. Offline

    bobbysmithyy

    Never mind Tr4p i found the conflict.
     
  30. Offline

    Tr4p

    What was it?
     
  31. Offline

    Novae7

    did you abort the refil or did you try it while the chat ask for -+[0] ?

    edit: i tried it again and i duped the item in the showcase..
    after i removed the shocase the refillrequest was still open and i typed -2 and got the item 2times back.... (i put only one item in the sc)

    i will try the same tomorrow without any other mods on my server....
     
Thread Status:
Not open for further replies.

Share This Page