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

    Ratchet

    @narrowtux
    if using basicmode=true, don't download narrowtuxlib / spout please? they don't seem to actually be requried at all for basicmode=true to function.
     
  3. Offline

    Stales89

    Any news on the full version with spout? I cannot sell stuff...
     
  4. Offline

    alexg2k1

    I really hope this gets support for Spout. I can't make any showcases :(
     
  5. Offline

    Token48

    Sorry for my bad English.
    but when I run the server Minecraft I have this error that appears in server.log
    version = 0.7.3 showcase
    Spout version = 1.0.1
     
  6. Offline

    Mercury

    04.08 00:44:48 [Server] SEVERE Could not pass event PLAYER_INTERACT to Showcase
    04.08 00:44:47 [Server] SEVERE Player: helar66 was not properly updated during login!
    04.08 00:45:30 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    04.08 00:45:30 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:491)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
    04.08 00:45:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    04.08 00:45:30 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    04.08 00:45:30 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
    04.08 00:45:30 [Server] INFO at com.narrowtux.event.NTLPlayerListener.onPlayerMove(NTLPlayerListener.java:21)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.onPlayerMove(Assistant.java:105)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.cancel(Assistant.java:217)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.closeScreen(Assistant.java:237)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.useGUI(Assistant.java:320)
    04.08 00:45:30 [Server] INFO java.lang.ClassCastException: org.bukkitcontrib.player.ContribCraftPlayer cannot be cast to org.getspout.spoutapi.player.SpoutPlayer
    04.08 00:45:30 [Server] SEVERE Could not pass event PLAYER_MOVE to NarrowtuxLib

    I have a lot of this.

    And this.

    04.08 00:48:47 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04.08 00:48:47 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    04.08 00:48:47 [Server] INFO at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    04.08 00:48:47 [Server] INFO at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    04.08 00:48:47 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    04.08 00:48:47 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    04.08 00:48:47 [Server] INFO at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    04.08 00:48:47 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:491)
    04.08 00:48:47 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
    04.08 00:48:47 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    04.08 00:48:47 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    04.08 00:48:47 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
    04.08 00:48:47 [Server] INFO at com.narrowtux.event.NTLPlayerListener.onPlayerMove(NTLPlayerListener.java:21)
    04.08 00:48:47 [Server] INFO at com.narrowtux.Assistant.Assistant.onPlayerMove(Assistant.java:105)
    04.08 00:48:47 [Server] INFO at com.narrowtux.Assistant.Assistant.cancel(Assistant.java:217)
    04.08 00:48:47 [Server] INFO at com.narrowtux.Assistant.Assistant.closeScreen(Assistant.java:237)
    04.08 00:48:47 [Server] INFO at com.narrowtux.Assistant.Assistant.useGUI(Assistant.java:320)
    04.08 00:48:47 [Server] INFO java.lang.ClassCastException: org.bukkitcontrib.player.ContribCraftPlayer cannot be cast to org.getspout.spoutapi.player.SpoutPlayer
    04.08 00:48:47 [Server] SEVERE Could not pass event PLAYER_MOVE to NarrowtuxLib
    04.08 00:48:46 [Server] SEVERE Player: helar66 was not properly updated during login!
    04.08 00:48:42 [Server] INFO [Showcase] Autosaved

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

    Zykana

    Really? Using Bukkit Contrib is THAT important? :/
     
  8. Offline

    City Builder

    Is it possible to make a server buy account, where showcase will buy specified items from the players?

    Removing bukkitcontrib prevents Showcase from working properly. Putting bukkitcontrib back in place produces 63MB server log files.

    Showcase didn't need to write 63MB server log files filled with:
    2011-08-04 01:17:44 [SEVERE] Could not pass event PLAYER_INTERACT to BukkitContrib

    when we first installed it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Sep 9, 2018
  9. Offline

    PhotonLance

    parts of gui srceens without text (( ... if without gui all ok

    and be nice have money when selling items into adminshop
     
  10. Offline

    ohtwo

    If you're going to return the money from infinite shops to the banks, would it be possible to distribute that money evenly across all players or bank accounts?
     
  11. Offline

    narrowtux

    No.
    NarrowtubLib is essential. You can now disable that NarrowtuxLib installs spout automatically, although this could produce errors.
    Spout is already supported.
     
  12. Offline

    Skeven

    I'd like to request the ability to allow setting the ability to sell to the showcases as well.
    Something like iConomyChestShop
     
  13. Offline

    msw1

    When we have spout installed, this is very glitchy...
    So, we can type what we want to choose no problem [finite, infinite, etc..]
    Then its just blank...Though typing in the price will make it go to the next thing.
    Then it randomly says Showcase Cancelled.
    Craftbukkit: 1000
    Showcase: 0.7.3
    Spout: 1.0.1
    NarrowtuxLib: 0.5.1
     
  14. You can tell it not to install spout by setting the config up in the Narrowtuxlib folder.
    But yes, getting the same problem with or without spout. I need bukkitcontrib to make showcase work, but then every time a player moves one unit of distance it prints out an error in the console.
    I tried telling my players that they could join, but they weren't allowed to move, but they didn't go for it.

    The items from currently existing showcases still hover above the blocks, but you can't interact with the blocks through showcase. Which means my player shops are nothing more than... showcases...
     
  15. Offline

    Sgt_Green

    i have the same problem. and its worse. they cant use chests or dispensers or anything like that without crashing the server. im being blamed for it as well.
    does anyone know a work around for this? because i want to use this plugin as it is the best shop plugin ever made.
     
  16. Offline

    skyforce77

    The plugin is compatible with spout? because he search the bukkit contrib folders.
    I can place showcase but no buy items.
     
  17. Offline

    Token48

    Sorry ...
    Problem solved, error in the configuration (showcase.cfg)
    Apparently it works correctment.
     
  18. Offline

    GermanCrafter

    Ich habe hier mal ein paar Bugs:
    Showcase: 0.7.3
    Bukkit: #1000
    1: Oft, wenn man eine Showcase auffüllen will (also Rechtsklick drauf) funktioniert das garnicht, wenn es dann geht, und man z.B "20" oder "-4", egal was, eintippt, schreibt er das in den Chat und alle können es sehen!

    2: Oft geht nach dem was ich oben beschrieben habe nicht mehr das Abbrechen mit "0(Null)" oder "o(o)". Dann muss man einfach weglaufen. Danach bekommt man eine Nachricht:"This is the chat held back for you:", und dann sieht man was man selber alles eingegeben hat, und was andere eingegeben haben, also z.B. "finite" oder "45" oder sowas. Zurückgehaltener Chat, klar ;)

    3: Wenn man es dann abgebrochen hat, und etwas anderes auffüllen will, und mann dann z.B. "-2" eintippt, bekommt man nicht das, was man eigentlich will, sondern das vorherige. Mal ein Beispiel: Ich will Pfeile aus der Showcase nehmen, klicke sie mit der rechten Maustaste an, tippe -5 ein, es passiert nichts, ich will mit "0(Null)" abbrechen, geht nicht, ich gehe raus, ich sehe, dass ich mal "0" geschrieben habe und was die Anderen geschrieben haben, ich will Brot aus der Showcase nehmen, klicke es mit der rechten Maustaste an, tippe "-5" ein, und was bekomme ich? PFEILE!, ich will abbrechen, geht nicht, ich gehe raus blablabla...

    Also, es wäre nett, wenn du VERSUCHEN könntest, das zu fixen. Ich selber programmiere vielleicht nicht in Java, aber in AutoIT, und ich weiß, wie schwer es sein kann, so etwas hinzubekommen!

    Trotzdem danke!
     
  19. Offline

    Paul_T

    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.

    ------

    You criticise other developers when you yourself, impose an update on everyone, which in my case stopped anyone being able to log in for the two hours I spent going through my 74 plugin's to find which one is doing it.

    Learn good development etiquette, when you add a new feature that has the potential to cause issues, make it so people have to ENABLE it, not that people who're used to it working the way it is have to disable it.
     
    sharkale likes this.
  20. Offline

    narrowtux

    Sorry, but that is just something completely different. 99% of the current issues arise because of the BukkitContrib renaming to Spout. This plugin needs Spout, when you don't want it, use a different shop plugin.
    Also, I'm currently putting most of the time I have, aside working all day, for bukkit development. Just because I was not there two days for fixing the bugs, you now think I'm a bad developer?

    You have to remOve BukkitContrib because spout has replaced it now.

    Hast du noch BukkitContrib installiert?

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

    Paul_T

    Well I'll drop it now, however I still stick by my belief, it should not download or change anything automatically, it should ask me, or wait for me to tell it to do so.

    And I apologise for being harsh, however it was exceptionally annoying, especially with absolutely no error messages, as this is all for free, I do appreciate it.
     
  22. Offline

    GermanCrafter

    Kann sein dass es noch drauf ist, ich gucke mal nach

    Edit: War noch drauf, habs mal runter geschmissen, und bis jetzt läuft alles gut :)
     
  23. Offline

    charleeesh

    Hi NarrowTux, first of all thaks for great plugin.

    Ive got some wierd behavior of plugin since update to Spout:

    1. After I crouch to slab and rightclick I can fill showcase type but after that "Showcase was canceled"
    I saw other users posting this but didnt find reply how to solve it. Ive got no errors in log.

    UPDATE:
    After Ive delete all config files and generate new ones Showcase starts to work. But in this new grafical element (I thing Spout stuff) text disappeared so I have only command line
    See picture
    showcase.jpg

    Show Spoiler
    BookWorm/
    bShortcut/
    ButtonWarp/
    Cenotaph/
    Citizens/
    Command iConomy/
    CommandBook/
    CraftIRC/
    EconomyPunga/
    HeroChat/
    Hungry/
    iConomy/
    ItemLogger/
    Jail/
    Jobs/
    LevelCraftCore/
    LocalShops/
    LWC/
    MCDocs/
    MobArena/
    MobBounty/
    MobDisguise/
    MonsterHunt/
    MultiVerse/
    MyWolf/
    NarrowtuxLib/
    NiftyWarp/
    NPC-Quester/
    Permissions/
    properTime/
    RCSkills/
    ScizzrHome/
    Showcase/
    Spout/
    SpoutBackpack/
    Statistician/
    TeslaCoil/
    Towny/
    uQuest/
    Wieze/
    WorldEdit/


    Im running CB 1000 and newest Spout and Spoutcraft.

    I also have one idea to implement into Showcase. Something to search for showcases so when user looking for diamonds and write command it will list coords of showcases where diamods are able to buy.

    Anyway thx for help


    Thx for help
     
  24. Offline

    eagle198

    When i use this when I destroy showcase the item stays
     
  25. Offline

    Infectedd

    May i know why after removing your plugin THIS got fixed?
     
  26. Offline

    skyforce77

    i have remove bukkitcontrib but the problem persist...
    Code:
    04.08 00:44:48 [Server] SEVERE Could not pass event PLAYER_INTERACT to Showcase
    04.08 00:44:47 [Server] SEVERE Player: helar66 was not properly updated during login!
    04.08 00:45:30 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    04.08 00:45:30 [Server] INFO at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:491)
    04.08 00:45:30 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:164)
    04.08 00:45:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    04.08 00:45:30 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    04.08 00:45:30 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
    04.08 00:45:30 [Server] INFO at com.narrowtux.event.NTLPlayerListener.onPlayerMove(NTLPlayerListener.java:21)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.onPlayerMove(Assistant.java:105)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.cancel(Assistant.java:217)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.closeScreen(Assistant.java:237)
    04.08 00:45:30 [Server] INFO at com.narrowtux.Assistant.Assistant.useGUI(Assistant.java:320)
    04.08 00:45:30 [Server] INFO java.lang.ClassCastException: org.bukkitcontrib.player.ContribCraftPlayer cannot be cast to org.getspout.spoutapi.player.SpoutPlayer
    04.08 00:45:30 [Server] SEVERE Could not pass event PLAYER_MOVE to NarrowtuxLib
    
    
     
  27. Offline

    narrowtux

    Seems you didn't removed BukkitContrib, because
    Code:
    04.08 00:45:30 [Server] INFO java.lang.ClassCastException: org.bukkitcontrib.player.ContribCraftPlayer cannot be cast to org.getspout.spoutapi.player.SpoutPlayer
    
    maybe another plugin still downloads BukkitContrib, so you can't simply remove it.

    Why so harsh?
    I think that issue didn't arise because of NarrowtuxLib or whatever I created, but that you still got BukkitContrib AND Spout installed. This doesn't work, because they alter some classes in the server.

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

    FuturaEX

    nice plugin :D i'm totally using this :D
     
  29. Offline

    quickclay

    Hi, your thread title says the current version is 0.7.3, but I only see references to 0.7.2. Could you please tell me what changes there are in 0.7.3? Love this plugin... 0.7.2 is working great on our server.
     
  30. Offline

    narrowtux

    0.7.3 was the change to spout, you should download this to prevent some bugs.
     
  31. Offline

    skyforce77

    ok but a new error occured...
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page