[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

    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 IAMWIN 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 kazimir!
    • All credits go to captainawesome7 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.
    Other versions (open)
    Version 1.9.5
    Other versions (open)

    • 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]
     
  2. Offline

    NeatMonster

    New version and tutorial on Bukkit Dev'.
     
  3. Offline

    Wiernusz

    I wasn't thjnking one slot, even if 9 was lowest, idea could still make sense.

    Limiting what items that can go into say, a 9 slot backpack..?
     
  4. Offline

    NeatMonster

    Limiting item is really easy.
     
  5. Offline

    mgmmikkel

    Do i understand it right, it removes the crafting abillity and replaces with a backpack?

    If so = Perfect RPG tool :3
     
  6. Offline

    Wiernusz

    If that were possible, MGM, that's what I'd love to see.

    I really need to find time and get my hands dirty with Java.
     
  7. Offline

    NeatMonster

    No. But I can considerate it as a suggestion.

    Really? I'll add it to my TO-DO.

    If you need some info about programming for Bukkit, I can send you a WIP tutorial I made for an other member.
     
  8. Offline

    mgmmikkel

    Thats great news! :)
     
  9. Offline

    NeatMonster

    You should see v2.2.0's changelog. :p
     
    mgmmikkel likes this.
  10. Offline

    mgmmikkel

    Sweet :D

    Nice feature. This may be irrelevant to the plugin, but is it possible to make the workbench in the inventory dissapear, not in the backpack, just the normal inventory :) ?

    OR perhaps disable the abillity to use inventory and ONLY Backpack? :eek:
     
  11. Offline

    NeatMonster

    Removed disable default inventory option: too difficult to handle. I'm working on an other way to replace the default inventory, but anyway, Spoutcraft will be needed.
     
  12. Offline

    HockeyMike24

    I have Mob Arena and people can use there backpacks to steal stuff from it. How can I fix that?
     
  13. Offline

    NeatMonster

    Hum... Normally Backpacks should be disabled in a MobArena zone. Please open a ticket, I will check it tomorrow.
     
  14. Offline

    paully104

    I am having a difficult time setting up this plugin with PermissionsEx i can access the backpack however members of the lower groups such as the builder class cannot and i have the needed permissions included. Can anybody lead me through this?
     
  15. Offline

    NeatMonster

    I haven't really understand what's wrong, so can you please give more informations and also post the result of the debug command (output in console) typed by one of the players who have your problem.
     
  16. Offline

    paully104

    Whenever i have PermissionsEx enabled in the config, only i can access the backpack with the rank of admin with the permission '*'. When i define the permission for the backpack individually in your initial setup they cannot access it. Also ill look for the debug info.
     
  17. Offline

    NeatMonster

    Tell one of your player to type the debug command and paste the output here please.
     
  18. Offline

    staxx6

    I still have the Problem... don't know what to do.
    Backpack update does not help. :<
     
  19. Offline

    NeatMonster

    Really really really strange: I wasn't able to reproduce this bug. I'm using Bukkit configuration methods and I never overwrite the configuration file.
     
  20. Offline

    Joeyderijk

    I don't know how to fix this:
    Code:
    20:43:59 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    20:44:00 [INFO] While loading SpoutEssentials (plugins/spoutEssentials.jar) found old-data folder: plugins/spoutEssentials next to the new one: plugins/SpoutEssentials
    20:44:00 [INFO] Preparing level "world"
    20:44:00 [INFO] Preparing start region for level 0 (Seed: -3502431069286197322)
    20:44:01 [INFO] Preparing start region for level 1 (Seed: -3502431069286197322)
    20:44:01 [INFO] Preparing spawn area: 48%
    20:44:02 [INFO] [BananaProtect] version 0.5 is enabled!
    20:44:02 [INFO] [BlockControl] Found and will use plugin Permissions v2.7.2 for permissions.
    20:44:02 [INFO] [BlockControl] 1.4 enabled.
    20:44:02 [INFO] Build 2.5.7 geladen Essentials van [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits]
    20:44:02 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    20:44:02 [INFO] GroupManager version 1.0(alpha-5) [Zombie-Version] is enabled!
    20:44:02 [INFO] [HealthBar] Loading..
    20:44:02 [INFO] [HealthBar] Loaded up plugin... Version 0.7.
    20:44:02 [INFO] [JSONAPI] JSONAPI version null started
    20:44:02 [INFO] [JSONAPI] Logging to file: true
    20:44:02 [INFO] [JSONAPI] Logging to console: true
    20:44:02 [INFO] [JSONAPI] IP Whitelist = None, all requests are allowed.
    20:44:02 [INFO] [JSONAPI] Waiting 2,000 seconds to load methods so that all the other plugins load...
    20:44:02 [INFO] [JSONAPI] Any requests in this time will not work...
    20:44:02 [INFO] Memory max: 532545536 bytes
    20:44:02 [INFO] Memory total: 532545536 bytes
    20:44:02 [INFO] Remote Toolkit Plugin V0.45b enabled!
    20:44:03 [INFO] Spout 1.0.5.227 has been initialized
    20:44:03 [INFO] SpoutEssentials v3.4.4 is enabled!
    20:44:03 [INFO] SpoutEssentials: WorldGuard Module disabled
    20:44:03 [INFO] SpoutEssentials: BOSEeconomy module disabled
    20:44:03 [INFO] SpoutEssentials: MobDisguise module disabled
    20:44:03 [INFO] [SpoutEssentials] Initiating auto-update...
    20:44:03 [INFO] [SpoutEssentials] You already have the latest version of SpoutEssentials.
    20:44:03 [INFO] Found and will use plugin Permissions v2.7.2
    20:44:03 [INFO] [zombieattack] Permissions enabled.
    20:44:03 [INFO] [zombieattack] 0.4 Enabled.
    20:44:03 [INFO] [ZombieDeaths] Plugin enabled.
    20:44:03 [INFO] Fake Permissions version 2.7.2 is enabled!
    20:44:03 [INFO] iConomy non actif!
    20:44:03 [INFO] WorldGuard non actif!
    20:44:03 [INFO] Citizens non actif!
    20:44:03 [INFO] RyveMusic version 1.4.1 est active!
    20:44:03 [INFO] [SortInventory] Permissions3/SuperpermBridge is detected. Permissions v2.7.2
    20:44:03 [INFO] [SortInventory] OBS. More than one permission system detected. The test sequence is: PermissionsBukkit, Permissions/PermissionsBridges, PermissionsEx
    20:44:03 [INFO] [SortInventory] Spout is detected.
    20:44:03 [INFO] [SortInventory] SpoutBackpack is detected.
    20:44:03 [INFO] [SortInventory] SortInventory version 1.4 is enabled!
    20:44:03 [INFO] [dynmap] Using Permissions 2.7.2 for access control
    20:44:04 [INFO] [dynmap] Loaded 12 shaders.
    20:44:05 [INFO] [JSONAPI] 73 methods loaded in 4 namespaces.
    20:44:05 [INFO] [JSONAPI] JSON Server listening on 20059
    20:44:05 [INFO] [JSONAPI] JSON Stream Server listening on 20060
    20:44:05 [INFO] [JSONAPI] JSON WebSocket Stream Server listening on 20061
    20:44:05 [INFO] [JSONAPI] Active and listening for requests.
    20:44:05 [INFO] [dynmap] Loaded 56 perspectives.
    20:44:05 [INFO] [dynmap] Loaded 6 lightings.
    20:44:05 [INFO] [dynmap] Loaded 2 maps of world 'world'.
    20:44:05 [INFO] [dynmap] Loaded 2 maps of world 'world_nether'.
    20:44:05 [INFO] [dynmap] Dynmap WebServer started on null:8123
    20:44:05 [INFO] [dynmap] version 0.21.1 is enabled
    20:44:05 [INFO] [SpoutBackpack] Permissions found, will use it.
    20:44:05 [INFO] [SpoutBackpack] Version 2.2.3 is now enabled.
    20:44:05 [INFO] [SpoutBackpack] Inventories loaded.
    20:44:05 [INFO] [SpoutBackpack] Payment method found (Essentials v2.2).
    20:44:05 [INFO] Server permissions file permissions.yml is empty, ignoring it
    20:44:05 [INFO] Done (0,518s)! For help, type "help" or "?"
    20:44:14 [INFO] Mr_Killcam3 [/192.168.2.64:57477] logged in with entity id 108 at ([world] -50.07369718992862, 72.0, 51.61518908964028)
    20:44:15 [SEVERE] Could not pass event PLAYER_JOIN to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.allowedSize(SpoutBackpack.java:317)
        at me.neatmonster.spoutbackpack.SpoutBackpack.loadInventory(SpoutBackpack.java:285)
        at me.neatmonster.spoutbackpack.SBPlayerListener.onPlayerJoin(SBPlayerListener.java:21)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:15 [INFO] Reading data
    20:44:15 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutEssentials
    java.lang.UnsupportedOperationException: All skins must be a PNG image
        at org.getspout.spout.player.SimpleAppearanceManager.checkUrl(SimpleAppearanceManager.java:333)
        at org.getspout.spout.player.SimpleAppearanceManager.setGlobalSkin(SimpleAppearanceManager.java:47)
        at me.skawke.spoutessentials.SpoutEssentialsSpoutListener.onSpoutCraftEnable(SpoutEssentialsSpoutListener.java:133)
        at org.getspout.spoutapi.event.spout.SpoutListener.onCustomEvent(SpoutListener.java:40)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spout.PlayerManager.onSpoutcraftEnable(PlayerManager.java:81)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:121)
        at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:15 [INFO] [Spout] Successfully authenticated Mr_Killcam3's Spoutcraft client. Running client version: 1.0.5.262
    20:44:20 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:21 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:22 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:23 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:23 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:23 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:23 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:27 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:32 [SEVERE] Could not pass event CUSTOM_EVENT to SpoutBackpack
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SBInputListener.onKeyPressedEvent(SBInputListener.java:38)
        at org.getspout.spoutapi.event.input.InputListener.onCustomEvent(InputListener.java:44)
        at org.bukkit.plugin.java.JavaPluginLoader$88.execute(JavaPluginLoader.java:862)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.getspout.spoutapi.packet.PacketKeyPress.run(PacketKeyPress.java:71)
        at org.getspout.spout.packet.CustomPacket.a(CustomPacket.java:129)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:44:34 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'backpack' in plugin SpoutBackpack v2.2.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.has(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
        at me.neatmonster.spoutbackpack.SpoutBackpack.canOpenBackpack(SpoutBackpack.java:424)
        at me.neatmonster.spoutbackpack.SpoutBackpack.onCommand(SpoutBackpack.java:526)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 13 more
    maybe u can help?


    EDIT: Fixed, SpiderJockey Plugin was the Problem ;p
     
  21. Offline

    x3ndless

    love this about to install and give you feedback, your layout is very clean and easy to comprehend, i especially like this part

    Show Spoiler
    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
     
  22. Offline

    NeatMonster

    Great!

    Now people love my thread. :p
    Thank you very much. ;)
     
  23. Offline

    Stormbow

    I'm playing on a server with this mod, but I'm not seeing the "18 slots" I'm supposed to be able to access. What am I doing wrong here?

    [​IMG]

    Both /bp info and the server's rank page show I should have 18 slots, but there's only 9 showing here.

    How do I get to the other 9?
     
  24. Offline

    NeatMonster

    What permissions plugin are you using? Type /bp upgrade and paste here the output printed in console.
     
  25. Offline

    Stormbow

    The site admin got it figured out. A permission bug was the blame. Thanks!
     
  26. Offline

    Gabriel333

    I have a question: What does this return if I call it, while SpoutBackPack is NOT open?
    inventory = BIT.spoutBackpackHandler.getOpenedSpoutBackpack(sPlayer);
    I need away to check if the SpoutBackpack is opened when the user press Hotkey S, to sort the inventory.
    /Gabriel333
     
  27. Offline

    pyrobryant

    For some reason EVERYONE on my server has a 54 slot bag, even though I set them to a 9 slot bag.


    CONFIG (open)

    Widget:
    PositionY: 5
    PositionX: 3
    Enabled?: true
    Permissions:
    UseGroupManager?: true
    UsePermissions?: false
    UsePermissionsBukkit?: false
    UsePermissionsEx?: false
    Backpack:
    Name: Backpack
    Key: B
    Price:
    '45': 32000.0
    '36': 23500.0
    '18': 10000.0
    '54': 64000.0
    '27': 14500.0
    RegionWhereBackpacksAreDisabled:
    - region1
    - region2
    world:
    Admin:
    UpgradeSize: 54
    Size: 54
    Default:
    UpgradeSize: 54
    Size: 9
    Owner:
    UpgradeSize: 54
    Size: 54
    InventoriesShare?: false
    Moderators:
    UpgradeSize: 9
    Size: 54
    world_name:
    InventoriesShare?: true
    NoneBlackOrWhiteList?: 0
    Whitelist:
    - 262
    Blacklist:
    - 264
    Workbench:
    Enabled?: false
    Key: W
    NeededInInventory?: false
    Saves:
    Log?: false
    Interval(InMinutes): 5
    Language: English





    GROUP MANAGER (open)

    groups:
    Default:
    default: true
    permissions:
    - backpack.size9
    - backpack.upgrade18
    - backpack.upgrade27
    - backpack.upgrade36
    - backpack.upgrade45
    - backpack.upgrade54
    - chestshop.shop.buy
    - chestshop.shop.sell
    - essentials.help
    - essentials.helpop
    - essentials.home
    - essentials.list
    - essentials.motd
    - essentials.msg
    - essentials.rules
    - essentials.sethome
    - essentials.spawn
    - factions.create
    - factions.participate
    - mcmmo.ability.*
    - mcmmo.commands.ability
    - mcmmo.commands.party
    - mcmmo.commands.partychat
    - mcmmo.skills.*
    inheritance: []
    info:
    prefix: '&a[Member]&_'
    build: false
    suffix: ''
    Owner:
    default: false
    permissions:
    - '*'
    inheritance:
    - admin
    info:
    prefix: '&6[Owner]&_'
    build: true
    suffix: ''
    Donator:
    default: false
    permissions:
    - backpack.size18
    inheritance:
    - default
    info:
    prefix: '&2[Donator]&_'
    build: false
    suffix: ''
    Moderator:
    default: false
    permissions:
    - essentials.ban
    - essentials.banip
    - essentials.clearinventory
    - essentials.kick
    - essentials.kill
    - essentials.msg
    - essentials.mute
    - essentials.nick
    - essentials.spawner
    - essentials.togglejail
    - essentials.warp
    - essentials.warp.list
    inheritance:
    - default
    info:
    prefix: '&b[Moderator]&_'
    build: false
    suffix: ''
    Admin:
    default: false
    permissions:
    - '*'
    inheritance: []
    info:
    prefix: '&4[Administrator]&_'
    build: true
    suffix: ''
     
  28. Offline

    Ziggy

    Absolutly fantastic, will you be updating to 1.8 when its released?
    [arrow] + [creeper] = [torch]WIN[torch]
     
  29. Offline

    NeatMonster

    You're welcome!

    I will add a new method to know if a player's Backpack is open.

    Strange, please tell one of your players to type /bp debug and paste the output (in console) here.

    Ty. Sure!

    Edit: @Gabriel333
    Version 2.3.1 for you!

     
  30. Offline

    Ziggy

    Thanks a bunch, :3
     
  31. Offline

    pyrobryant

    This was a basic member using /bp debug
    DEBUG INFO (open)

    2011-09-12 12:21:36 [INFO] You're are using GroupManager.
    2011-09-12 12:21:36 [INFO] Economy system detected.
    2011-09-12 12:21:36 [INFO] Your permissions give you a 9 slots Backpack.
    2011-09-12 12:21:36 [INFO] Your personal file gives you a 9 slots Backpack.
    2011-09-12 12:21:36 [INFO] Your permissions allow you to upgrade to a 54 slots Backpack.
    2011-09-12 12:21:41 [INFO] nothing happened
    2011-09-12 12:21:46 [INFO] You're are using GroupManager.
    2011-09-12 12:21:46 [INFO] Economy system detected.
    2011-09-12 12:21:46 [INFO] Your permissions give you a 9 slots Backpack.
    2011-09-12 12:21:46 [INFO] Your personal file gives you a 9 slots Backpack.
    2011-09-12 12:21:46 [INFO] Your permissions allow you to upgrade to a 54 slots Backpack.
    2011-09-12 12:21:49 [INFO] You're are using GroupManager.
    2011-09-12 12:21:49 [INFO] Economy system detected.
    2011-09-12 12:21:49 [INFO] Your permissions give you a 9 slots Backpack.
    2011-09-12 12:21:49 [INFO] Your personal file gives you a 9 slots Backpack.
    2011-09-12 12:21:49 [INFO] Your permissions allow you to upgrade to a 54 slots Backpack

     

Share This Page