[GEN|ECON] TooManyBuckets v0.2.2 - Spawn Items with Style! [1060] [Spoutcraft]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, Aug 23, 2011.

  1. Offline

    narrowtux

    TooManyBuckets
    Version 0.2.2

    Please use the Bukkit Dev site now, @Plague you don't have to approve this here, I already moved this to bukkit dev!

    This plugin let's you spawn items like you know from the popular TooManyItems mod.
    It includes a search bar, you can clear your inventory with one click, and more.
    Get TooManyBuckets!
    Download - Donate if you like!
    Sourcecode on GitHub.com

    Please report issues to the GitHub bug tracker!

    Features
    • Totally configureable item list, set a custom name, the amount to spawn each click, and even data value.
    • Select which items should be visible by default
    • Can set the item names for the inventory tooltips (optional)
    • Search for a specific item
    • Buy items for money (supports iConomy, BOSEconomy, EssentialsEco, MultiCurrency)
    Permissions
    TooManyBuckets uses SuperPermissions, the one built into Bukkit.
    The only current permission is "toomanybuckets.use", it defaults to ops.

    How to use
    There is a command to open the screen, /tmi. I know you want to use a shortcut for that, so you can use my plugin Shortcuts to do that (it offers flexibility for every user because each user can define his own shortcuts).
    In the screen, you can type something in the text field to search. The view below will automatically filter the results. When you want to spawn an item, just click on the button.
    You can also clear your inventory, when it's very screwed from cheating too many buckets -.-

    Screenshot
    2011-08-23_20.39.23.png

    Configuration
    You can configure which items appear in the search results by editing the items.yml file in the TooManyBuckets folder.
    Here's an example item:
    Code:
    <nameOfItem>:
        amount: <amountToSpawn>
        indefaultview: <should it be in the standard view? (true|false)>
        data: <data value>
        type: <item id or name>
        price: <price of the item (optional, 0 by default)>
    
    You can add as many items as you want to the file.
    You can also configure if it should update the tooltip names in the inventory to the names you defined in items.yml and if the data value should appear in the tooltip in the TooManyBuckets window.

    Changelog
    See this: http://tetragaming.com/narrowtux/beta/index.php?action=plugin&plugin=8#changelog
    Todo
    • Groups which have seperate permissions and can be found via the search.
     
  2. Offline

    Taranis01

    wow, the list of spout plugins is getting better and better :)
    suggestions: a command for adding some kits of items ( /tmi <kitname> <ID,ID,...> ). Then they should be choose able trough buttons shown on the inventory screen.
    And a Trash-feature for the inventory screen to drag and drop items into it.
    i use your Shortcut Plugin, but is it able to add Shortcuts for other people (or everyone with the permissions for TMI)?
     
  3. Offline

    narrowtux

    You can't do that with shortcuts at the moment, I'm still considering how to do that.
    Also, "kits" would be possible with groups. So when you're searching for a group, you'd see all items of that one. I can add a "Give all" button somewhere to make it easy to spawn the whole group.

    Release v0.1.1
    • Fixed screen not opening after relogin

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
    mbsuperstar1 and Taranis01 like this.
  4. Offline

    grinch843

    Nice plugin, works great so far.. One suggestion if possible. Since there is a command to use it, could you add a search function to the command? ie '/tmi iron' would display the item name & id of any items that contain the word iron in them? Would be handy for quick looks ups....

    Thanks,
    Grinch843....
     
  5. Offline

    DontCare4Free

    Seems like the last reason not to install SpoutCraft is gone now.
     
  6. Offline

    Orcem12

    Explain?
     
  7. Offline

    Dec64

    I get this error when trying to use, any idea whats going on?
     
  8. Offline

    CainFoool

    Install the spout plugin.
     
  9. Offline

    narrowtux

    This is the replacement for TooManyItems when you use Spoutcraft.
     
  10. Offline

    Orcem12

    Ah ok.
     
  11. Offline

    Cosmic Break

    yay! pretty soon i'll be able to get rid of the bloated essentials plugin as well!
     
  12. Offline

    Kane

    Bad ass. We are a legit server and have 0 use for this but still bad ass hehe.
     
  13. Offline

    MindEngineer

    Looks like a nice plugin. I've been waiting for something like this. I ran in to an issue. I dropped the jar file in my plugin directory and starter server. It didn't auto-create the 2 yml files that are shown in github. It autocreates a Microsoft Outlook Configuration File. I copy and pasted and created the 2 yml files, and got the plugin to work partially.
     
  14. Offline

    narrowtux

    Just because it has .cfg on the end, it's not for Outlook;)
    You should have toomanyitems.cfg and items.yml in your directory after startup.
     
  15. Offline

    phaed

    Code:
    2011-08-23 22:44:43 [SEVERE] Could not load 'plugins/TooManyBuckets.jar' in folder 'plugins':
     java.lang.reflect.InvocationTargetException
     	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
     	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
     	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
     	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
     	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
     	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:143)
     	at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:110)
     	at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
     	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:133)
     	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
     	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     Caused by: java.lang.NoClassDefFoundError: org/getspout/spoutapi/event/screen/ScreenListener
     	at java.lang.ClassLoader.defineClass1(Native Method)
     	at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
     	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
     	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
     	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
     	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
     	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
     	at java.security.AccessController.doPrivileged(Native Method)
     	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
     	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
     	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
     	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
     	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
     	at com.narrowtux.toomanybuckets.TMBMain.<init>(TMBMain.java:45)
     	... 13 more
     Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.event.screen.ScreenListener
     	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
     	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
     	at java.security.AccessController.doPrivileged(Native Method)
     	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
     	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
     	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
     	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
     	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
     	... 27 more
    
    Getting this, I have Spout but it seems to be loading *after* TooManyBuckets. You may want to add Spout dependency on the plugin.yml.
     
  16. Offline

    narrowtux

    Hmm yeah :D
     
  17. Offline

    Dec64

    I have spout lol, I'm not that slow ;)
     
  18. Offline

    Snaipe



    Same error here.
     
  19. Offline

    phaed

    Guys, for now just open up the jar and add Spout to the depends list in the plugin.yml:

    Code:
    depends: [NarrowtuxLib, Spout]
     
    narrowtux likes this.
  20. Offline

    crysis992

    Maybe a small but awesome idea:
    Change it to a shop, iConomy hook ;)
     
  21. Offline

    narrowtux

    Awesome, I'd add an additional price field to the items.yml
     
  22. Offline

    Montpelier

    It looks like the problem is that the plugin.yml uses 'depends' instead of 'depend'. So even if you edit the content to include Spout it still ignores it until you ditch the plural.

    I'm not a coder so yes I BUSTED MY TITS OFF figuring this out. Now my tits are busted. I hope you're happy. About my tits. And how busted they are. (Very.)

    Okay now I got it working for a while, suggestion party.

    1) Give some feedback on successful spawning of an item. Not a chat message since that'll be blacked out, but something to show whether the click was successful or not. I'd be more specific but I'm not sure what Spout's capable of right now. Include the amount spawned and notification of failed spawns due to full inventory for bonus prize.

    2) Add a close window button. Since you're using the mouse to navigate the list it makes more sense to close it using the same thing than hitting Esc. Which sometimes doesn't register anyway.

    3) Search from the start of each item name's word only. This will retain the ability to search for things like "helmet" and get back all the different types of helmet, but avoid the random spam you get searching for short strings.

    3a) Since no item has a number in the name, typing a number should automatically perform an ID search.

    3a1.0a) Probably not possible but just saying: The results of a search usually take up at most a line or two no matter how vague your string, so there would definitely be space to have the inventory inline and implement TMB around it, right? That'd be sooooo cooooooooool omg omg omg etc~

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

    phaed

    Did not even notice that, good catch.
     
  24. Offline

    narrowtux

    @Montpelier
    Ah I always forget that it's plural :D
    To the suggestions:
    1) this is possible via the achievement get popup
    2) sure.
    3) would include some special handling.
    3a) sure, how could I forget that.
    3a1) currently not possible with spout.

    Release v0.1.2
    • Fix spout loading issues.

    Release v0.2
    • Can setup a shop with price: property in items.yml
    • Sends notifications when spawning items
    • Better search (now only matches beginnings and also matches item ids)
    • Fixed a bug that didn't restore the window after a reopen
    • Added a close button

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

    DutchCraft

    Spoutclient required for this plugin yes or no?
     
  26. Offline

    narrowtux

    Is required because it uses the GUI API.
     
  27. Offline

    DutchCraft

    Do you might know if there is a way to run a SpoutWorld next to my normal worlds which will not require the spoutclient? Or know if this is planned for future updates? As i do not want to force my members to get the spoutclient.
     
  28. Offline

    Dec64

    Using the latest DevBuild of spout, does not load the GUI window properly, just a grey box.
     
  29. Offline

    narrowtux

    Which build exactly?
     
  30. Offline

    Dec64

    erm, i had the box ticked in the options, to use latest version, once i un ticked that box, it updated(downgraded or whatever) and it works fine. I dont know the build number.
     

Share This Page