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

    That happens when you disable a showcase type but still have showcases of that type in the world. They wouldn't be usable anyway.

    From which version did you upgrade?
    If you don't have backups, the showcases are lost anyway, sorry.

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

    Exanimo

    A user complained he could use some of the showcases i created and not others, while i made them at the same time and the same way. They all worked for me (as admin) and i rechecked permissions.
    Then i recreated one of the problem showcases.
    When that didnt worked i downloaded the latest showcase version, thinking i might have missed an update (maybe something to do with the way permissions are handled now by the latest Bukkit. I got the latest version)

    I rebooted the server and suddenly i get errors in the console at reboot and the showcases are messed up (at least the inifinite ones), unusable and the contents on the floor.

    Any idea what the issue is? Using Permissons 3 and Iconomy. Error below:

    Also.. i tried putting back the jar from a backup earlier today + the showcase directory but the error remains!
    I do think i suddenly have an extra directory Narrowtuxlib (i think it was). Removing this directory when putting back the previous files didnt work either. :(

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

    narrowtux

    @Exanimo
    NarrowtuxLib is a dependency. A library created by me. It contains Assistant, Translation and Notifications (when players buy from showcases, owner is notified).
    The other problem you have got likely results from that you have 2 .jar files inside plugins/ which are Showcase.
    Maybe you just forgot to remove the old .jar
     
  5. Offline

    Kaaji

    Hello,

    The showcase.buy.finite and showcase.buy.infinite permissions don't work in my server.
    But the sells commands work.
    Only the player with all permissions ('*') can buy.
    The simple player can remove ALL (and the other's players) Showcase.
    This means that these codes aren't good, they may be reverse :(

    Here is a part of my groups.yml file
    (I just take the three important groups and the ShowCase permissions).
    I work with permissions 3.1.6, CraftBukkit #1000
     
  6. Offline

    narrowtux

    This group file says nothing so far, please give me the whole file.
    I think that this is nearly impossible, unless there is an error with Permissions.
     
  7. Offline

    Exanimo

    I'll be damned! How could i overlooked that? My download program created a Showcase(2).jar where i thought it had overwritten it.
    Guess i shouldn't update plugins just before bed when im not that bright anymore.
    Thanks for the quick help and sorry for the dumb question :p
    (still impressed you managed to tell the issue from the error btw)
     
  8. Offline

    narrowtux

    I know that error from my own development, sometimes I forget to change the filename in the export screen and this error along with very weird results occurs.
     
  9. Offline

    JoshP95

    Hi, I have a problem with permissions and creating showcases when you're not an admin or an Op.
    To be honest, I can't pinpoint the problem, I've tried many things that didn't work so I was wondering if you could find the error in my permissions file maybe? If not do you have any other solution? Are there any conflicting plugins?

    The plugins I have are:
    AlphaChest
    BookWorm
    (BukkitContrib)
    ButtonWarp
    ChairCraft
    ChestLock
    CommandBook
    HeroChat
    iConomy
    InvisibleInk
    Jail
    MobSpawner
    Multiverse
    MyHome
    (NarrowtuxLib)
    Permissions
    QuizBlock
    Showcase
    WeatherControl
    WorldEdit
    WorldGuard

    Wow that's a lot, but yeah.

    Thanks

    My groups.yml file: http://www.gamefront.com/files/20607617/groups_yml
     
  10. Offline

    narrowtux

    Your default group can build basic and finite showcases. Is it that what you don't want?
     
  11. Offline

    JoshP95

    No, what I would like is for the Member group to be able to create their own showcases (I'm not sure about Default yet) but mainly the Member group. But when a member tries to do it, nothing at all comes up.

    EDIT: It's working now, however members can create infinite showcases. How can I disable this?
     
  12. is it possible for showcases to be created only in certain worldguard regions, I can do this with other plugins by simply blocking the commands (i.e. for iConomy banks, i can limit the /bank command to only the 'bank' region). I wanted to do this so I could create marketplace regions...
    cheers!
     
  13. Offline

    Kaaji

    Okay, here is my permissions folder.
    Thanks for your help (I'll give a donate :p)
     
  14. Getting this console error when attempting to use a showcase, creating them work fines though...
    22:11:07 [SEVERE] Could not pass event PLAYER_INTERACT to Showcase
    java.lang.NullPointerException
    at de.moritzschmale.Showcase.Types.BuyAssistant.<init>(BuyAssistant.java
    :56)
    at de.moritzschmale.Showcase.Types.FiniteShowcaseExtra.onClick(FiniteSho
    wcaseExtra.java:23)
    at de.moritzschmale.Showcase.ShowcasePlayerListener.onPlayerInteract(Sho
    wcasePlayerListener.java:78)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:6
    3)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:458)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Using Showcase v 0.7.2 and CB1000
     
  15. Offline

    narrowtux

    You need an economy system as well.

    Hmm, it seems your permissions setup is correct.
    The reason that all players can remove all showcases is likely that you have set showcaseprotection to false. That is very unsafe, because it basically allows every player to remove every other showcase, even if they're not the owner.
    I hope that helps so far ;)
    I can't imagine that the players can't actually buy from the showcases. I'll look into that tomorrow ;)

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

    heeelp4

    hey um in game every time i try to make a showcase it says i qoute showcase creation cancled.'
    Am I doing something wrong. Or is it just a bug That you haven't found yet
     
  17. Offline

    meep

    how to delete unlimited shops? :confused:
     
  18. Offline

    topsub

    my sql support that stores all the information in the database would be awesome. That way i can tie all of this to the website an dhave people buy items from he website using iconomy money.
     
  19. Offline

    narrowtux

    You seem to have a chat-altering plugin installed. Can you list all of your plugins?
    Just like the other shops.
    No MySQL support. This would require me to write 2 different persistence layers and to maintain them both because not everyone uses MySQL.
     
  20. Offline

    heeelp4

    I forgot um every time i try to make a showcase it sasys cancling created showcase is me or is it a bug u havent found yet
     
  21. Offline

    narrowtux

    Are you serious? I answered yor question ONE POST above! Stop spamming my thread.
     
  22. Offline

    heeelp4

    Administrate,BlueTelePads,ChopTree,Citizens,Colors(I think this is it, not sure though.),ColorSheep,
    CommandSigns,CbutD,EasyFlight,EasyRules,Essntials,GroupSpawn,HeroicDeath,iConomy,LockPick,LWC,
    MobArena, MyWarp, Paintball, Permissions, PetCreeper, PortalStick, pvparena,ServerBot, SignLift, SimpleREstart,SimpleTips,Tombstone,WeatherRestrictions,WorldEdit,WorldGuard, mcMMO, ULP, CraftBall,
    Careers, ShowCase,Slots,VS (Stores on The Go),FalseBook,Reservations,TurnStile,BankAccount,Coupon Codes,NarrowTuxLib, BukkitContrib( don't even know why i have these 2 in here.)

    sorry i needed to see my posts because i forgot the #1427

    also will HeroChat interfeer with it to?

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

    meep

    there comes no msg when i want to do it like that o:

    and can u make it that it's configurable how many items u sell with it ?
    and can u make a shop to buy items?
    not only sell o=
     
  24. Sorry for the bump on my question, but really wanted to know whether this was possible before implementing it into the main server!
     
  25. Offline

    narrowtux

    You can only limit the building of showcases with setting if the user can build there or not.
    Maybe a permissions plugin that checks the location could do that.
     
  26. Offline

    ben657

    hey, just wondering if you could list some prefix/suffix plugins that this WILL work with? :)
     
  27. Offline

    narrowtux

    I don't use them. When they're implemented correctly, they shouldn't cause issues with Showcase.

    EDIT: I mean, even Essentials works with it without any issues, even though Essentials is screwed!
     
    royfort likes this.
  28. Offline

    ben657

    okay, thanks anyway :p

    EDIT: mChat works fine ^^
     
  29. Offline

    vvconorvv

    ive got loads of problems, makes server freeze, and we dont have many plugins and it only happens when i have this plugin, is it up to date?
     
  30. Offline

    shutara

    Hi everyone i have a prob
    nobody can buy from showcases it grnerates error

    [INFO] [Showcase] Autosaved

    2011-07-29 22:20:31 [SEVERE] Could not pass event PLAYER_CHAT to NarrowtuxLib
    java.lang.NoSuchMethodError: cosine.boseconomy.BOSEconomy.getPlayerMoneyDouble(Ljava/lang/String;)D
    at com.nijikokun.register.payment.methods.BOSE6$BOSEAccount.balance(BOSE6.java:71)
    at de.moritzschmale.Showcase.ShowcasePlayer.canAfford(ShowcasePlayer.java:92)
    at de.moritzschmale.Showcase.Types.BuyAssistant.onAssistantFinish(BuyAssistant.java:66)
    at com.narrowtux.Assistant.Assistant.stop(Assistant.java:219)
    at com.narrowtux.Assistant.Assistant.onPlayerChat(Assistant.java:62)
    at com.narrowtux.event.NTLPlayerListener.onPlayerChat(NTLPlayerListener.java:15)
    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:332)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:682)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    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:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)



    in one perfect day it get doing yhis my players are added t server list
     
  31. Offline

    narrowtux

    Aside of freezing the server, which other problems do you have?
    Is that BOSEconomy 7 ?
     
Thread Status:
Not open for further replies.

Share This Page