[INACTIVE] [MECH/DEV] SpoutBackpack v2.3.6_3 - Give your players a Backpack [1317]

Discussion in 'Inactive/Unsupported Plugins' started by NeatMonster, Aug 10, 2011.

     
  1. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please now use BukkitInventoryTools which contains SpoutBackpack.
    This thread is now useless, please don't post any longer on it.
    -----------------------

    You can find the Bukkit Dev' thread HERE.
    Please use it, this thread will no longer be updated.

    ------------------------

    SpoutBackpack v2.0.1
    Give your players a Backpack w/ Spout.

    Because pictures / video are always better than thousand words:
    [IMG]
    [IMG]
    (Unofficial video by [USER]IAMWIN[/USER] but outdated: v1.9.5)

    Features:
    • Pressing a key to open your backpack ;
    • Economy widget if you want it ;
    • Not just backpack, workbench too ;
    • Drop on death (configurable) ;
    • Permissions and economy plugins support ;
    • Allow your players to expand their Backpack ;
    • Restictions of upgrades & commands ;
    • Multiworld support with different Backpacks ;
    • Hooks into WorldGuard, MobArena and Jail ;
    • Key and name can be customized ;
    • API for developers ;
    • Backpacks are saved on server ;
    • Works even on reload.
    Requirements:
    • Spout and Spoutcraft - Required to launch and use the plugin.
      Tested with RB #1.0.5.227 of Spout and RB #1.0.5.256 of Spoutcraft.
    • (OPTIONAL) Permissions - Required if you want to customize the size or upgrade.
    • (OPTIONAL) PermissionsBukkit - Required if you want to customize the size or upgrade.
    • (OPTIONAL) PermissionsEx - Required if you want to customize the size or upgrade.
    • (OPTIONAL) GroupManager - Required if you want to customize the size or upgrade.
    • (OPTIONAL) iConomy - Required if you want to upgrade.
    • (OPTIONAL) BOSEconomy - Required if you want to upgrade.
    • (OPTIONAL) Essentials Economy - Required if you want to upgrade.
    • (OPTIONAL) MultiCurrency - Required if you want to upgrade.
    • (OPTIONAL) WorldGuard - Not required but compatible.
    • (OPTIONAL) MobArena - Not required but compatible.
    • (OPTIONAL) Jail - Not required but compatible.
    Configuration:
    Code:
    Widget:
        PositionY: 5
        PositionX: 3
        Enabled?: true
    Permissions:
        UseGroupManager?: false
        UsePermissions?: true
        UsePermissionsBukkit?: false
        UsePermissionsEx?: false
    Backpack:
        Name: Backpack
        Key: B
        Price:
            '45': 40.0
            '36': 30.0
            '18': 10.0
            '54': 50.0
            '27': 20.0
        RegionWhereBackpacksAreDisabled:
        - region1
        - region2
        world:
            Administrators:
                UpgradeSize: 54
                Size: 54
            Players:
                UpgradeSize: 27
                Size: 9
            Guests:
                UpgradeSize: 0
                Size: 0
            InventoriesShare?: true
            Moderators:
                UpgradeSize: 45
                Size: 27
            Joueurs:
                UpgradeSize: 36
                Size: 18
    Workbench:
        Enabled?: true
        Key: W
        NeededInInventory?: false
    Saves:
        Log?: false
        Interval(InMinutes): 5
    
    For PermissionsBukkit and PermissionsEx, you need to add permissions backpack.worldname.groupname. You also need to order your groups in the configuration file (eg. Admins, then Mods, then Players and then Guests). I'm sorry of this but those two plugins doesn't have the methods I need.

    Permissions:
    • backpack.workbench : Allow the player to open a virtual workbench.
    • backpack.nodrop : No drop of the items in the Backpack on death.
    • backpack.clear : Allow the player to clear his own Backpack.
    • backpack.clear.other : Allow the player to clear others inventories.
    • backpack.info.other: Allow the player to show info about others.
    • backpack.upgrade.other: Allow the player to upgrade others' Backpack.
    • backpack.open.other : Open other players' Backpack.
    • backpack.reload : Allow the use of the /backpack reload command.
    • NOTE: If you use OP system, size for not-Op players will be 9 and 54 for OP players.
    Commands:
    • /backpack clear (Player) : Clear your / player's inventory.
    • /backpack info (Player): Show information about your / player's Backpack.
    • /backpack open [Player] : Open player's Backpack.
    • /backpack upgrade [Player]: Upgrade your /player's Backpack.
    • /backpack reload : Reload Backpack's configuration.
    • NOTE: /backpack's alias is /bp.
    Downloads:
    Highly recommended:
    Credits:
    • The portage from BukkitContrib to Spout of this plugin was made by [USER]kazimir[/USER]!
    • All credits go to [USER]captainawesome7[/USER] for his awesome BCBackpack plugin!
    TO-DO:
    • Permissions support ; DONE IN 1.3
    • Configuration of the key ; DONE IN 1.3
    • Multiple chest sizes ; DONE IN 1.4
    • iConomy integration ; DONE IN 1.6
    • MobArena hook ; DONE IN 1.6.1
    • BOSEconomy support ; DONE IN 1.6.2
    • PermissionsBukkit support ; DONE IN 1.6.3
    • Multiworld support ; DONE IN 1.7
    • Separate inventories ; DONE IN 1.7
    • WorldGuard regions support ; DONE IN 1.7.1
    • GroupManager support ; DONE IN 1.7.2
    • Workbench ; DONE IN 1.8
    • Jail support ; DONE IN 1.8.1
    • Add an option to disable workbench ; DONE IN 1.8.2
    • Restriction on Workbench ; DONE IN 1.8.4
    • Support of Essentials economy ; DONE IN 1.8.5
    • Economy widget ; DONE IN 1.9
    • Command to clear Backpack ; DONE IN 1.9
    • Restrictions on upgrades ; DONE IN 1.9
    • API ; DONE IN 1.9
    • Setting for the widget position ; DONE IN 1.9.2
    • Lookup in others' Backpack ; DONE IN 1.9.2
    • Support for PermissionsEx ; DONE IN 2.0
    • Handle deaths without Spout client ; DONE IN 2.0
    • Upgrade other players' Backpack ; DONE IN 2.0
    • Furnaces.
    Notes:
    • If you put something in your Backpack and close Minecraft by clicking the "X" without closing your backpack, all items you put in since opening your Backpack are lost. That's not a bug - It's a feature to prevent duping.
    API:
    You want to hook into SpoutBackpack? Fine, I have what you need.
    1. Import SpoutBackpack.jar as a library in your project ;
    2. Import me.neatmonster.spoutbackpack.SBHandler ;
    3. In your main class, add this object creation :
      Code:
          public SBHandler spoutBackpackHandler;
    4. Somewhere on your onEnable, add this line :
      Code:
              setupSpoutBackpack();
    5. So, this is the setupSpoutBackpack function :
      Code:
          private void setupSpoutBackpack() {
                                                      if (spoutBackpackHandler != null) {
                                                          return;
                                                      }
                                                      Plugin spoutBackpackPlugin = this.getServer().getPluginManager().getPlugin("SpoutBackpack");
                                                      if (spoutBackpackPlugin == null) {
                                                          return;
                                                      }
                                                      spoutBackpackHandler = new SBHandler();
                                                      return;
                                                      }
    6. To check somewhere in your code if SpoutBackpack is enabled, use :
      Code:
              if (spoutBackpackHandler != null) {
                                            return;
                                     }
    7. And finally to use a method of SpoutBackpack :
      Code:
              spoutBackpackHandler.theMethodYouWant();
      You can find all the methods HERE.
    8. If you need more methods, or if I made a mistake, do not hesitate to contact me.
    Changelog:
    Version 2.0.1
    • PermissionsBukkit & PermissionsEx fix.
    Version 2.0
    • Improved Backpacks' save system ;
    • PermissionsBukkit full support ;
    • PermissionsEx full support ;
    • Bug fix when client doesn't use Spoutcraft ;
    • Upgrade other players' Backpack.
    Version 1.9.5

    • Added methods for the API.
    Version 1.9.4
    • Fixed API.
    Version 1.9.3
    • Removed debug messages.
    Version 1.9.2
    • Setting for the position of the widget ;
    • Command to open other players' Backpack.
    Version 1.9.1
    • New method added to the API.
    Version 1.9
    • Economy widget when you opens your Backpack ;
    • Commands to clear Backpack(s) ;
    • Restrictions on updates ;
    • Creation of an API ;
    • Bug fixes with economy.
    Version 1.8.5
    • Support of Essentials Economy ;
    • Support of MultiCurrency.
    Version 1.8.4
    • Option to only use workbench if you have one in inventory.
    Version 1.8.3
    • No more saves when nobody is online ;
    • Fixed bug on upgrade.
    Version 1.8.2
    • Workbench toggle in the config.
    Version 1.8.1
    • Jail support.
    Version 1.8
    • Now with you can give your players a virtual workbench ;
    • You can close the workbench with the same key ;
    • Now the workbench will not appear when typing in the chat.
    Version 1.7.3
    • GroupManager full support.
    Version 1.7.2
    • GroupManager support ;
    • Permission for drop on death.
    Version 1.7.1
    • You can specify WorldGuard region where Backpacks will be disabled ;
    • More, more, more and more keys.
    Version 1.7
    • New multiworld support ;
    • Separate inventories ;
    • Common inventories ;
    • Reload command ;
    • Smart detection of plugins you've installed ;
    • Some code rewrite = more proper code.
    Version 1.6.3
    • Added PermissionsBukkit support with configuration options.
    Version 1.6.2
    • Support for BOSEconomy, no configuration needed ;
    • More anti-cheat messages and information for users.
    Version 1.6.1
    • Hooks in MobArena : when a player is inside an arena, I can't open his BackPack ;
    • For more security, it checks if iConomy is installed.
    Version 1.6
    • Added iConomy support & /backpack commands, which allow your players to expand their Backpack by paying some iConomy money (configurable in config.yml) ;
    • Minor bug fixes & code cleanup.
    Version 1.5
    • Added support for multiword (see in config.yml).
    • More and more help in the config.yml.
    Version 1.4
    • New permissions for different sizes.
    Version 1.3
    • Closing you backpack will now saves his content.
    • Permissions support.
    • You can now change the key used to open the backpack in the configuration.
    Version 1.2
    • Original version.



    [IMG]

    This post has been edited 90 times. It was last edited by NeatMonster Nov 6, 2011.
  2.  
  3. Offline

    Wesley211

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  4. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oups... I've forgotten a ! in my code. Redownload the .JAR.

    So, you probably have GroupManager. But it's strange because the plugin detected you've Permissions.
    Can you write me a list of all the .JAR contained in your plugins folder?
  5. Offline

    Wesley211

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    - Essentials.jar
    - EssentialsChat.jar
    - EssentialsGroupBridge.jar
    - EssentialsGroupManager.jar
    - EssentialsSpawn.jar
    - Mobarena.jar
    - ScubaKit.jar
    - SpongeRestore.jar
    - Spout.jar
    - Worldedit.jar
    
    Tell me if u need to know anything else

    This post has been edited 1 time. It was last edited by Wesley211 Aug 15, 2011.
  6. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Let me explain the error : when SpoutBackpack is loaded, it checks if Permissions is installed. Because you've got EssentialsGroupBridge, it tells to SpoutBackpack "Yes, Permissions is installed!". And when SpoutBackpack tries to use Permissions, it failed.

    So you've got three options :
    • Delete EssentialsGroupBridge and EssentialsGroupManager, and use Permissions (recommended) ;
    • Delete EssentialsGroupBridge but some other plugins may not work ;
    • Don't use SpoutBackpack (not recommended :p).
  7. Offline

    Wiernusz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So is this not good to use with PermissionsBukkit/SuperPermsBridge combined?

    Players are having an issue with the backpack upgrade.

    Also curious as to weather I'd need to set EACH group with the permissions, or if this is inheriting properly.


    I could post you my log if you wish.
  8. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You can use PermissionsBukkit! You seemed to use GroupManager.
    Inheriting is working with Permissions, PermissionsBukkit, GroupManager.
    If you've an error in the console, yes please post the log.
  9. Offline

    Wiernusz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, I have no errors. I use Permissions Bukkit with the bridge, and use MCMyAdmin to set them. Doubt MCMyAdmin is the cause.


    To be more specific, it's taking money out of players accounts, and just not giving them a bigger backpack.


    Your non-dev version; This uses utilizes Spoutcraft 1.01, correct?

    I noticed Spout did away with the whole BAT file deal; almost wondering if players running different versions of spout could have corrupted. I'll do a fresh install with nothing but spout/backpack/run on spoutclient with PermBukkit and Superpermsbridge.

    This will take me a bit; but hope it may help.

    This post has been edited 1 time. It was last edited by Wiernusz Aug 15, 2011.
  10. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    With PermissionsBukkit, you shouldn't be able to use the upgrade function. I think the plugin detects Permissions because of the bridge. I haven't think about that before. I must implement manual toggles for the permissions system. Development version will be updated soon. Maybe I'll release without the furnace function.

    Yes, the non-development version is using the version 1.0.1 of Spout.
  11. Offline

    vrox

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Will this work with the Jail plugin?
  12. Offline

    Wiernusz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Okay, so was any information I gave you a help? Should I still try to get it to work, or wait?

    Thanks, appreciate it man :)
  13. Offline

    Mercury

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  14. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Update to 1.8.

    I'll check this update and release a new version.
    Edit: Not a recommended version?
    Re-Edit: Redownload, tested with #2.0.2.113.
    Re-Re-Edit:
    This plugin doesn't hook in the Jail plugin, but I'll add it to my TO-DO list.

    This post has been edited 3 times. It was last edited by NeatMonster Aug 15, 2011.
  15. Offline

    gameswereus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Glad someone noticed it doesn't work with jail yet :p I was planning on adding it quite soon.
  16. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It was past!
    Enjoy! :cool:
    vrox likes this.
  17. Offline

    ScottSpittle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    does this require the client-side mod?
  18. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep!
  19. Offline

    ScottSpittle

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Why is this not under the "Requirements" Section?
  20. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay, I'll add it as soon as possible.
  21. Offline

    Wiernusz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thank you so much. Going to try it out soon as I get home.
  22. Offline

    Olat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @NeatMonster
    using Group Manager... Nothing seems to work properly. I can upgrade my backback which is not supposed to be allowed... and.. well I cant open my Backpack or Workbench. No errors in console.

    CB 1000
    Code:
    01:26:52 [INFO] [SpoutBackpack] GroupManager found, will use it.
    01:26:52 [INFO] [SpoutBackpack] Version 1.8.1 is now enabled.
    01:26:52 [INFO] [SpoutBackpack] Inventories loaded.
    01:26:52 [INFO] [SpoutBackpack] iConomy found, will use it.
    
    my groups.yml for groupmanager:
    http://pastebin.com/j6XL7cCP

    Edit: Editted to provide more information.

    This post has been edited 3 times. It was last edited by Olat Aug 16, 2011.
  23. Offline

    mrgreaper

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    were using a very old verson
    our config file is
    Code:
    InventoryName: StasisPod
    BackPackSize: 74
    DropItemsOnDeath: false
    the config file in the example is much much much more detailed BUT the back pack size only goes up to 54?
    how do we set it so all players have a backpack of 75?
  24. Offline

    Spiritwind

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Have the correct permission nodes set backpack.size9
    /backpack info says I have a backpack with 9 slots. Backpack still wont open using hotkey.
    Downloaded the updated version and cleared the old cfg files.
    Still isnt working, here is my cfg file.

    Code:
    LogTheSaves?: false
    KeyUsedToOpenTheBackpack: L
    PriceToUpgradeToThe45Backpack: 40.0
    UseGroupManager?: true
    IntervalInMinutesBetweenEachSaving: 5
    NameOfTheBackpack: Backpack
    WorldsWhoShareInventories:
    - world1
    PriceToUpgradeToThe54Backpack: 50.0
    UsePermissionsBukkit?: false
    RegionsWhereBackpacksAreDisabled:
    - region1
    - region2
    PriceToUpgradeToThe27Backpack: 20.0
    PriceToUpgradeToThe18Backpack: 10.0
    UsePermissions?: true
    KeyUsedToOpenTheWorkbench: O
    SeparateInventories?: false
    PriceToUpgradeToThe36Backpack: 30.0
    

    This post has been edited 3 times. It was last edited by Spiritwind Aug 16, 2011.
  25. Offline

    false_chicken

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I updated to build 1060 today and installed Spout 1.0.2.115 on my server and now none of my players can open their backpacks. Any suggestions? Running SpoutBackpack 1.8.1 with Permissions 3.x installed.
  26. Offline

    Wiernusz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Seems to be working fine now, thanks alot for the update.
    If your B key doesn't work, update the Spout plugin aswell.

    This post has been edited 1 time. It was last edited by Wiernusz Aug 16, 2011.
  27. Offline

    BerialFang

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    the problem i was haveing is that we could walk around and open backpack however has we walked forward our inventory kepet opening did some more testing and when i disable this plugin the auto opening inventory stops then if i renable it it we walk and the inventory opens again

    also i updated spout today as well and it is still doing this

    This post has been edited 2 times. It was last edited by BerialFang Aug 16, 2011.
  28. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Done.

    I'll work a new version.

    With GroupManager you're supposed to be able to upgrade Backpack.

    Impossible, the limit is 54.

    Probably the Spout update, I'm working on a new version.

    Like the others : I'm working on a new version.

    Hum... I don't understand. You can open your Backpack when you're walking?
  29. Offline

    Wiernusz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I was just an idiot, I assumed Spout plugin would automaticly update, but it hadn't (config lies). Updated that, and it worked. Sofar, seems to be working good. I'll give you more info once I have 5-10 people play around with it :)
    As far as inventory opening when walking goes, maybe the default key to move forward isn't the best idea to have as your default config. keybinding (W).
    I'm using b1000 just incase it means anything. Loads of other plugins running, and no issues :)

    This post has been edited 3 times. It was last edited by Wiernusz Aug 16, 2011.
  30. Offline

    BerialFang

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    sorry it is late when i am walking forward my inventory opens even though i didn't push the button to open my inventory

    when i disable your plugin everything works normaly

    sorry for the confusion
  31. Offline

    BerialFang

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    sorry it is a bit late for me so my typing isn't the best in the world forawed is bound to "W" inventory bound to "E" so defults what i ment was that has i am walking at the moment my inventory opens for no reason it is fixed when i disabled the backpack

    This post has been edited 1 time. It was last edited by BerialFang Aug 16, 2011.
  32. Offline

    NeatMonster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Recompiled for the new Spout version.

    Fine. I'm French, so I have AZERTY keyboard. Great reply, I'll change the default key for the workbench.

    Okay, like I said by default the W key is used to walk forward and to open the "virtual workbench". Change this key in the plugin configuration. I'll upload a silent version just to change the default key.

Share This Page