I'm going insane [No errors, I've been trying to get it work all week]

Discussion in 'Plugin Development' started by BrushPainter, Mar 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    timtower Administrator Administrator Moderator

    BrushPainter You need to change the order of the stuff in newInventory
    You are getting itemMeta from something that is created 10 lines after that
     
    BrushPainter likes this.
  2. Offline

    Rainy37

    Yes, you are trying to get the ItemMeta of a "null" item since fullyauto was not defined yet in line 49.
    Change line 49 to
    Code:
    ItemMeta imfa = faprice.getItemMeta();
    and revise your other ItemMeta code below such as
    Code:
    ItemMeta imtb = threeburst.getItemMeta();
    to match the tbprice you want it with
     
    BrushPainter likes this.
  3. Offline

    BrushPainter

    timtower Rainy37 Oh god... I never even noticed, I was revising everything near onEnable (because I saw the console error) yet I couldn't find anything that looked odd because I'm used to setting the names of the paintball guns as the ItemMeta and stuff. Ok well thank you guys again. :D

    Rainy37 timtower Also, when a player clicks on either one of the paintball guns to register these commands (Found on lines 181-183 and 200-202 of my code) in the console:
    Code:java
    1. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "manuaddp " + buyer + " paintballguns.getgun.threeburst");
    2. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "manuaddp " + buyer + " -pbgunshop.buy.threeburst");
    3. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "eco take " + buyer + " 1000");

    It tells them the gun was purchased and it tells them they do not have enough money even though I put else. And when they click it, even if they do/don't have enough money it doesn't take the money, or give them the permissions.

    Here is what it shows in the console:
    Code:
    10.03 16:15:36 [Server] INFO /manuaddp <player> <permissions>
    10.03 16:15:36 [Server] INFO Player not found!
    10.03 16:15:36 [Server] INFO /manuaddp <player> <permissions>
    10.03 16:15:36 [Server] INFO Player not found!
    10.03 16:15:36 [Server] INFO Couldn't retrieve your world. Default world 'world' selected.
    10.03 16:15:31 [Server] INFO ... 13 more
    10.03 16:15:31 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) ~[craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]
    10.03 16:15:31 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
    10.03 16:15:31 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
    10.03 16:15:31 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]
    10.03 16:15:31 [Server] INFO at me.BrushPainter.PBGunShop.Main.onInventoryClick(Main.java:147) ~[?:?]
    10.03 16:15:31 [Server] INFO Caused by: java.lang.NullPointerException
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.handle(SourceFile:10) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.a(SourceFile:32) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1351) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:466) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:481) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:31 [Server] INFO org.bukkit.event.EventException
    10.03 16:15:31 [Server] ERROR Could not pass event InventoryClickEvent to PBGunShop v1.0.1
    10.03 16:15:15 [Server] INFO Players: BrushPainter
    10.03 16:15:09 [Server] INFO ... 13 more
    10.03 16:15:09 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) ~[craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]
    10.03 16:15:09 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
    10.03 16:15:09 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]
    10.03 16:15:09 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]
    10.03 16:15:09 [Server] INFO at me.BrushPainter.PBGunShop.Main.onInventoryClick(Main.java:147) ~[?:?]
    10.03 16:15:09 [Server] INFO Caused by: java.lang.NullPointerException
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.handle(SourceFile:10) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.a(SourceFile:32) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1351) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:466) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:481) [craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[craftbukkit_dev_2995.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
    10.03 16:15:09 [Server] INFO org.bukkit.event.EventException
    10.03 16:15:09 [Server] ERROR Could not pass event InventoryClickEvent to PBGunShop v1.0.1
    10.03 16:15:00 [Server] INFO No new version available
    10.03 16:15:00 [Server] INFO Checking for Updates:
    10.03 16:15:00 [Server] INFO GroupManager - INFO - Bukkit Permissions Updated!
    10.03 16:15:00 [Multicraft] Server ran command Start
    10.03 16:15:00 [Multicraft] Server already running
    10.03 16:14:59 [Server] INFO Post-enable finished.
    10.03 16:14:59 [Server] INFO Post-enable running...
    10.03 16:14:59 [Server] INFO BrushPainter: Reload complete.
    10.03 16:14:59 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
    10.03 16:14:59 [Server] INFO v1.2.1 enabled!
    10.03 16:14:59 [Server] INFO Loaded Paintball arenas: raid
    10.03 16:14:59 [Server] INFO Enabling ArenaPaintball v1.2.1
    10.03 16:14:59 [Server] INFO v3.9.6.7.4 enabled!
    10.03 16:14:59 [Server] INFO registering classes: gladiator, archer, monk
    10.03 16:14:59 [Server] INFO no additional Arena modules
    10.03 16:14:59 [Server] INFO found economy plugin Vault. [Default]
    10.03 16:14:59 [Server] INFO Warning currency was empty, using name from config.yml
    10.03 16:14:59 [Server] INFO WorldGuard detected. WorldGuard regions can now be used
    10.03 16:14:59 [Server] INFO WorldEdit detected.
    10.03 16:14:59 [Server] INFO Essentials detected. God mode handling activated
    10.03 16:14:59 [Server] INFO BattleTracker not detected, not tracking wins
    10.03 16:14:59 [Server] INFO v3.9.6.7.4 enabling!
    10.03 16:14:59 [Server] INFO Enabling BattleArena v3.9.6.7.4
    10.03 16:14:59 [Server] INFO Enabling EssentialsChat v2.12.2
    10.03 16:14:59 [Server] WARN Please notify the author of this error.
    10.03 16:14:59 [Server] WARN Files uploaded to BukkitDev should contain the version number, seperated from the name by a 'v', such as PluginName v1.0
    10.03 16:14:59 [Server] WARN The author of this plugin (Rossco5378) has misconfigured their Auto Update system
    10.03 16:14:58 [Server] INFO Authme 3.3.3 enabled
    10.03 16:14:58 [Server] INFO This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com
    10.03 16:14:58 [Server] INFO Hook with EssentialsSpawn plugin
    10.03 16:14:58 [Server] INFO Hook with Essentials plugin
    10.03 16:14:58 [Server] INFO Vault plugin detected, hook with GroupManager system
    10.03 16:14:58 [Server] INFO Set Language: en
    10.03 16:14:58 [Server] WARN Please check your config.yml file!
    10.03 16:14:58 [Server] WARN Merge new Config Options if needed..
    10.03 16:14:58 [Server] INFO Loading Configuration File...
    10.03 16:14:58 [Server] INFO Enabling AuthMe v3.3.3
    10.03 16:14:58 [Server] INFO You are using the latest version! Thanks :)
    10.03 16:14:58 [Server] INFO Enabling Soups v2.5.2
    10.03 16:14:58 [Server] INFO MC 1.3 or above found, enabling version 2 XP handling.
    10.03 16:14:58 [Server] INFO Enabling Enjin Minecraft Plugin v2.5.3
    10.03 16:14:58 [Server] INFO Enabling EssentialsSpawn v2.12.2
    10.03 16:14:58 [Server] INFO Essentials: Using GroupManager based permissions.
    10.03 16:14:58 [Server] INFO [Vault][Economy] Essentials Economy hooked.
    10.03 16:14:58 [Server] INFO Enabling Essentials v2.12.2
    10.03 16:14:58 [Server] INFO I am in the version 1.0!
    10.03 16:14:58 [Server] INFO I am written by[Roelofsma123]!
    10.03 16:14:58 [Server] INFO I am enabled!
    10.03 16:14:58 [Server] INFO Enabling PlayerBloodEffect v1.0
    10.03 16:14:58 [Server] INFO Developed by: [Sharkiller]
    10.03 16:14:58 [Server] INFO v1.7-03.23 is enabled!
    10.03 16:14:58 [Server] INFO Scheduled every 10 minutes!
    10.03 16:14:58 [Server] INFO Settings Loaded (1 announces).
    10.03 16:14:58 [Server] INFO Permission support enabled!
    10.03 16:14:58 [Server] INFO Enabling AutoAnnouncer v1.7-03.23
    10.03 16:14:58 [Server] INFO Enabling MPK v1.0.0
    10.03 16:14:58 [Server] INFO Enabling AutoRestart v1.5
    10.03 16:14:58 [Server] INFO Gems Enabled
    10.03 16:14:58 [Server] INFO Enabling Gems v1.0.1
    10.03 16:14:58 [Server] INFO CustomKits Enabled
    10.03 16:14:58 [Server] INFO Enabling CustomKits v1.0.1
    10.03 16:14:58 [Server] INFO PaintballGun2 Enabled
    10.03 16:14:58 [Server] INFO Enabling PaintballGun2 v1.0.1
    10.03 16:14:58 [Server] INFO PaintballGun1 Enabled
    10.03 16:14:58 [Server] INFO Enabling PaintballGun1 v1.0.1
    10.03 16:14:58 [Server] INFO PaintballGun3 Enabled
    10.03 16:14:58 [Server] INFO Enabling PaintballGun3 v1.0.1
    10.03 16:14:58 [Server] INFO Enabling NoFall v0.1
    10.03 16:14:58 [Server] INFO Enabling ColoredMotd v1.4.3
    10.03 16:14:58 [Server] INFO Please donate at the AlwaysDay page (http://dev.bukkit.org/server-mods/always-day/) if you are enjoying this plugin! Any contributions are greatly appreciated!
    10.03 16:14:58 [Server] INFO AlwaysDay v2.2.8 is now enabled.
    10.03 16:14:58 [Server] INFO Enabling AlwaysDay v2.2.8
    10.03 16:14:58 [Server] INFO Enabling NoDrop v0.1.5
    10.03 16:14:58 [Server] INFO null
    10.03 16:14:58 [Server] INFO Connected to MySQL Database
    10.03 16:14:58 [Server] INFO Could not connect to MySQL server!
    10.03 16:14:58 [Server] INFO 0.9.3 enabled.
    10.03 16:14:58 [Server] INFO Enabling SimpleWarnings v0.9.3
    10.03 16:14:58 [Server] INFO 0 regions loaded for 'Servers'
    10.03 16:14:58 [Server] INFO 2 regions loaded for 'Raid'
    10.03 16:14:58 [Server] INFO 0 regions loaded for 'PrisonBreakout'
    10.03 16:14:58 [Server] INFO 2 regions loaded for 'Nuketown'
    10.03 16:14:58 [Server] INFO 0 regions loaded for 'world'
    10.03 16:14:58 [Server] INFO Loaded configuration for world 'Servers'
    10.03 16:14:58 [Server] INFO (Servers) Fire spread is UNRESTRICTED.
    10.03 16:14:58 [Server] INFO (Servers) Lava fire is blocked.
    10.03 16:14:58 [Server] INFO (Servers) Lighters are PERMITTED.
    10.03 16:14:58 [Server] INFO (Servers) TNT ignition is PERMITTED.
    10.03 16:14:58 [Server] INFO Loaded configuration for world 'Raid'
    10.03 16:14:58 [Server] INFO (Raid) Fire spread is UNRESTRICTED.
    10.03 16:14:58 [Server] INFO (Raid) Lava fire is blocked.
    10.03 16:14:58 [Server] INFO (Raid) Lighters are PERMITTED.
    10.03 16:14:58 [Server] INFO (Raid) TNT ignition is PERMITTED.
    10.03 16:14:58 [Server] INFO Loaded configuration for world 'PrisonBreakout'
    10.03 16:14:58 [Server] INFO (PrisonBreakout) Fire spread is UNRESTRICTED.
    10.03 16:14:58 [Server] INFO (PrisonBreakout) Lava fire is blocked.
    10.03 16:14:58 [Server] INFO (PrisonBreakout) Lighters are PERMITTED.
    10.03 16:14:58 [Server] INFO (PrisonBreakout) TNT ignition is PERMITTED.
    10.03 16:14:58 [Server] INFO Loaded configuration for world 'Nuketown'
    10.03 16:14:58 [Server] INFO (Nuketown) Fire spread is UNRESTRICTED.
    10.03 16:14:58 [Server] INFO (Nuketown) Lava fire is blocked.
    10.03 16:14:58 [Server] INFO (Nuketown) Lighters are PERMITTED.
    10.03 16:14:58 [Server] INFO (Nuketown) TNT ignition is PERMITTED.
    10.03 16:14:58 [Server] INFO Loaded configuration for world 'world'
    10.03 16:14:58 [Server] INFO (world) Fire spread is UNRESTRICTED.
    10.03 16:14:58 [Server] INFO (world) Lava fire is blocked.
    10.03 16:14:58 [Server] INFO (world) Lighters are PERMITTED.
    10.03 16:14:58 [Server] INFO (world) TNT ignition is PERMITTED.
    10.03 16:14:58 [Server] INFO Enabling WorldGuard v5.8
    10.03 16:14:58 [Server] INFO Enabling EnderChestPlus v7.0
    10.03 16:14:58 [Server] INFO Feature SurvivalGames 0.5.x disabled.
    10.03 16:14:58 [Server] INFO Feature GlobalCommands disabled.
    10.03 16:14:58 [Server] INFO Feature SimpleStats disabled.
    10.03 16:14:58 [Server] INFO Feature PVPStatsScoreboard activated.
    10.03 16:14:58 [Server] INFO Enabling PVPStatsScoreboard v0.1.3.3
    10.03 16:14:58 [Server] INFO Version 1.1 has been enabled. (4ms)
    10.03 16:14:58 [Server] INFO Save task started!
    10.03 16:14:58 [Server] INFO Portal data loaded! (0ms)
    10.03 16:14:58 [Server] INFO Configuration file portals.yml loaded!
    10.03 16:14:58 [Server] INFO Configuration file config.yml loaded!
    10.03 16:14:58 [Server] INFO Plugin channel registered!
    10.03 16:14:58 [Server] INFO Events registered!
    10.03 16:14:58 [Server] INFO Commands registered!
    10.03 16:14:58 [Server] INFO Metrics initiated!
    10.03 16:14:58 [Server] INFO Enabling BungeePortals v1.1
    10.03 16:14:58 [Server] INFO ---=[ KitPVP ]=---
    10.03 16:14:58 [Server] INFO KitPVP v1.4 Enabled.
    10.03 16:14:58 [Server] INFO Thanks for using my plugin :)
    10.03 16:14:58 [Server] INFO KitPVP by njb_said
    10.03 16:14:58 [Server] INFO ---=[ KitPVP ]=---
    10.03 16:14:58 [Server] INFO Enabling KitPVP v1.4
    10.03 16:14:58 [Server] INFO enabled. (version 0.6.8)
    10.03 16:14:58 [Server] INFO MySQL connection successful
    10.03 16:14:58 [Server] INFO MySQL Initializing
    10.03 16:14:58 [Server] INFO Enabling pvpstats v0.6.8
    10.03 16:14:58 [Server] INFO PBGunShop Enabled
    10.03 16:14:58 [Server] INFO Enabling PBGunShop v1.0.1
    10.03 16:14:58 [Server] INFO RankSigns Version 0.7.2 Has Been Enabled! Hello! :D
    10.03 16:14:58 [Server] INFO Enabling RankSigns v0.7.2
    10.03 16:14:58 [Server] INFO Hooked with Essentials Economy using Vault.
    10.03 16:14:58 [Server] INFO Enabling PvpLevels v1.2.1
    10.03 16:14:58 [Server] INFO Version 3.10.8-RC-sMD5NET-b664 is enabled.
    10.03 16:14:58 [Server] INFO Some settings could have changed, you should regenerate it!
    10.03 16:14:58 [Server] WARN Your configuration might be outdated.
    10.03 16:14:58 [Server] INFO Inventory checks: FastConsume is available, disabled InstantEat.
    10.03 16:14:58 [Server] INFO Added block-info for Minecraft 1.7.2 blocks.
    10.03 16:14:58 [Server] INFO Added block-info for Minecraft 1.6.1 blocks.
    10.03 16:14:58 [Server] INFO Added block-info for Minecraft 1.5 blocks.
    10.03 16:14:58 [Server] INFO McAccess set to: 1.7.2 / CB2922-DEV
    10.03 16:14:58 [Server] INFO Enabling NoCheatPlus v3.10.8-RC-sMD5NET-b664
    10.03 16:14:58 [Server] INFO WEPIF: GroupManager detected! Using GroupManager for permissions.
    10.03 16:14:58 [Server] INFO Enabling WorldEdit v5.5.8
    10.03 16:14:58 [Server] INFO KCS Enabled
    10.03 16:14:58 [Server] INFO Enabling KillCountSwords v1.0.1
    10.03 16:14:58 [Server] INFO Enabling Portals v1.2.4
    10.03 16:14:58 [Server] INFO [Vault][Chat] GroupManager - Chat hooked.
    10.03 16:14:58 [Server] INFO [Vault][Permission] GroupManager hooked.
    10.03 16:14:58 [Server] INFO GroupManager version 2.0 (2.12.1) (Phoenix) is enabled!
    10.03 16:14:58 [Server] INFO GroupManager - INFO - Backups will be retained for 24 hours!
    10.03 16:14:58 [Server] INFO GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    10.03 16:14:58 [Server] INFO GroupManager - INFO - Superperms support enabled.
    10.03 16:14:58 [Server] INFO GroupManager - INFO - World Found: world
    10.03 16:14:57 [Server] INFO Enabling GroupManager v2.0 (2.12.1) (Phoenix)
    10.03 16:14:57 [Server] INFO For reference, the main world's spawn location is at X: 76.0 Y: 64.0 Z: 252.0
    10.03 16:14:57 [Server] INFO [CONFIG] World "Nuketown" has border radius 60x70 at X: 1.7 Z: -746.4
    10.03 16:14:57 [Server] INFO [CONFIG] World "Raid" has border radius 93x104 at X: -980.4 Z: -1011.6
    10.03 16:14:57 [Server] INFO [CONFIG] World "Servers" has border radius 2000 at X: -224.5 Z: -589.5
    10.03 16:14:57 [Server] INFO [CONFIG] Border-checking timed task started.
    10.03 16:14:57 [Server] INFO [CONFIG] Using elliptic/round border, knockback of 1.0 blocks, and timer delay of 5.
    10.03 16:14:57 [Server] INFO Enabling WorldBorder v1.7.8
    10.03 16:14:57 [Server] INFO v5.1.0 enabled.
    10.03 16:14:57 [Server] INFO worlds.world
    10.03 16:14:57 [Server] INFO worlds.Servers
    10.03 16:14:57 [Server] INFO worlds.Raid
    10.03 16:14:57 [Server] INFO worlds.PrisonBreakout
    10.03 16:14:57 [Server] INFO worlds.Nuketown
    10.03 16:14:57 [Server] INFO Enabling MultiWorld v5.1.0
    10.03 16:14:57 [Server] INFO Started structure compiler thread.
    10.03 16:14:57 [Server] INFO Enabling ProtocolLib v3.1.3-SNAPSHOT
    10.03 16:14:57 [Server] INFO [Vault] Enabled Version 1.2.31-b411
    10.03 16:14:57 [Server] INFO [Vault][Chat] GroupManager found: Waiting
    10.03 16:14:57 [Server] INFO [Vault][Permission] SuperPermissions loaded as backup permission system.
    10.03 16:14:57 [Server] INFO [Vault][Permission] GroupManager found: Waiting
    10.03 16:14:57 [Server] INFO [Vault][Economy] Essentials Economy found: Waiting
    10.03 16:14:57 [Server] INFO Enabling Vault v1.2.31-b411
    10.03 16:14:57 [Server] INFO Loading ArenaPaintball v1.2.1
    10.03 16:14:57 [Server] INFO Loading BattleArena v3.9.6.7.4
    10.03 16:14:57 [Server] INFO Loading EssentialsChat v2.12.2
    10.03 16:14:57 [Server] INFO Loading AuthMe v3.3.3
    10.03 16:14:57 [Server] INFO Loading Soups v2.5.2
    10.03 16:14:57 [Server] INFO Loading Enjin Minecraft Plugin v2.5.3
    10.03 16:14:57 [Server] INFO Loading EssentialsSpawn v2.12.2
    10.03 16:14:57 [Server] INFO Loading Essentials v2.12.2
    10.03 16:14:57 [Server] INFO Loading PlayerBloodEffect v1.0
    10.03 16:14:57 [Server] INFO Loading AutoAnnouncer v1.7-03.23
    10.03 16:14:57 [Server] INFO Loading MPK v1.0.0
    10.03 16:14:57 [Server] INFO Loading AutoRestart v1.5
    10.03 16:14:57 [Server] INFO Loading ProtocolLib v3.1.3-SNAPSHOT
    10.03 16:14:57 [Server] INFO Loading Gems v1.0.1
    10.03 16:14:57 [Server] INFO Loading CustomKits v1.0.1
    10.03 16:14:57 [Server] INFO Loading PaintballGun2 v1.0.1
    10.03 16:14:57 [Server] INFO Loading PaintballGun1 v1.0.1
    10.03 16:14:57 [Server] INFO Loading PaintballGun3 v1.0.1
    10.03 16:14:57 [Server] INFO Loading NoFall v0.1
    10.03 16:14:57 [Server] INFO Loading ColoredMotd v1.4.3
    10.03 16:14:57 [Server] INFO Loading AlwaysDay v2.2.8
    10.03 16:14:57 [Server] INFO Loading NoDrop v0.1.5
    10.03 16:14:57 [Server] INFO Loading SimpleWarnings v0.9.3
    10.03 16:14:57 [Server] INFO Loading WorldGuard v5.8
    10.03 16:14:57 [Server] INFO Loading EnderChestPlus v7.0
    10.03 16:14:57 [Server] INFO Loading PVPStatsScoreboard v0.1.3.3
    10.03 16:14:57 [Server] INFO Loading BungeePortals v1.1
    10.03 16:14:57 [Server] INFO Loading KitPVP v1.4
    10.03 16:14:57 [Server] INFO Loading pvpstats v0.6.8
    10.03 16:14:57 [Server] INFO Loading PBGunShop v1.0.1
    10.03 16:14:57 [Server] INFO Loading Vault v1.2.31-b411
    10.03 16:14:57 [Server] INFO Loading RankSigns v0.7.2
    10.03 16:14:57 [Server] INFO Loading PvpLevels v1.2.1
    10.03 16:14:57 [Server] INFO Loading NoCheatPlus v3.10.8-RC-sMD5NET-b664
    10.03 16:14:57 [Server] INFO Loading WorldEdit v5.5.8
    10.03 16:14:57 [Server] INFO Loading KillCountSwords v1.0.1
    10.03 16:14:57 [Server] INFO Loading Portals v1.2.4
    10.03 16:14:57 [Server] INFO Loading GroupManager v2.0 (2.12.1) (Phoenix)
    10.03 16:14:57 [Server] INFO Loading WorldBorder v1.7.8
    10.03 16:14:57 [Server] INFO Loading MultiWorld v5.1.0
    10.03 16:14:57 [Server] ERROR Nag author: 'alkarin' of 'BattleArena' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded.  This may cause conflicts with the newly loaded version of the plugin
    10.03 16:14:54 [Server] INFO Disabled.
    10.03 16:14:54 [Server] INFO Disabling MultiWorld v5.1.0
    10.03 16:14:54 [Server] INFO [CONFIG] Border-checking timed task stopped.
    10.03 16:14:54 [Server] INFO Disabling WorldBorder v1.7.8
    10.03 16:14:54 [Server] INFO GroupManager version 2.0 (2.12.1) (Phoenix) is disabled!
    10.03 16:14:54 [Server] INFO GroupManager - INFO - Scheduled Data Saving is disabled!
    10.03 16:14:54 [Server] INFO Disabling GroupManager v2.0 (2.12.1) (Phoenix)
    10.03 16:14:54 [Server] INFO Disabling Portals v1.2.4
    10.03 16:14:54 [Server] INFO KCS Disabled
    10.03 16:14:54 [Server] INFO Disabling KillCountSwords v1.0.1
    10.03 16:14:54 [Server] INFO Disabling WorldEdit v5.5.8
    10.03 16:14:54 [Server] INFO Version 3.10.8-RC-sMD5NET-b664 is disabled.
    10.03 16:14:54 [Server] INFO Disabling NoCheatPlus v3.10.8-RC-sMD5NET-b664
    10.03 16:14:54 [Server] INFO Disabling PvpLevels v1.2.1
    10.03 16:14:54 [Server] INFO RankSigns Has Been Disabled! Bye! D:
    10.03 16:14:54 [Server] INFO Disabling RankSigns v0.7.2
    10.03 16:14:54 [Server] INFO Disabling Vault v1.2.31-b411
    10.03 16:14:54 [Server] INFO PBGunShop Disabled
    10.03 16:14:54 [Server] INFO Disabling PBGunShop v1.0.1
    10.03 16:14:54 [Server] INFO disabled. (version 0.6.8)
    10.03 16:14:54 [Server] INFO Disabling pvpstats v0.6.8
    10.03 16:14:54 [Server] INFO ---=[ KitPVP ]=---
    10.03 16:14:54 [Server] INFO KitPVP v1.4 Disabled.
    10.03 16:14:54 [Server] INFO Thanks for using my plugin :)
    10.03 16:14:54 [Server] INFO KitPVP by njb_said
    10.03 16:14:54 [Server] INFO ---=[ KitPVP ]=---
    10.03 16:14:54 [Server] INFO Disabling KitPVP v1.4
    10.03 16:14:54 [Server] INFO Version 1.1 has been disabled. (1ms)
    10.03 16:14:54 [Server] INFO Portal data saved! (0ms)
    10.03 16:14:54 [Server] INFO Disabling BungeePortals v1.1
    10.03 16:14:54 [Server] INFO Disabling PVPStatsScoreboard v0.1.3.3
    10.03 16:14:54 [Server] INFO Disabling EnderChestPlus v7.0
    10.03 16:14:54 [Server] INFO Disabling WorldGuard v5.8
    10.03 16:14:54 [Server] INFO 0.9.3 disabled.
    10.03 16:14:54 [Server] INFO Disabling SimpleWarnings v0.9.3
    10.03 16:14:54 [Server] INFO Disabling NoDrop v0.1.5
    10.03 16:14:54 [Server] INFO Please donate at the AlwaysDay page (http://dev.bukkit.org/server-mods/always-day/) if you are enjoying this plugin! Any contributions are greatly appreciated!
    10.03 16:14:54 [Server] INFO AlwaysDay v2.2.8 is now disabled.
    10.03 16:14:54 [Server] INFO Disabling AlwaysDay v2.2.8
    10.03 16:14:54 [Server] INFO Disabling ColoredMotd v1.4.3
    10.03 16:14:54 [Server] INFO Disabling NoFall v0.1
    10.03 16:14:54 [Server] INFO PaintballGun3 Disabled
    10.03 16:14:54 [Server] INFO Disabling PaintballGun3 v1.0.1
    10.03 16:14:54 [Server] INFO PaintballGun1 Disabled
    10.03 16:14:54 [Server] INFO Disabling PaintballGun1 v1.0.1
    10.03 16:14:54 [Server] INFO PaintballGun2 Disabled
    10.03 16:14:54 [Server] INFO Disabling PaintballGun2 v1.0.1
    10.03 16:14:54 [Server] INFO CustomKits Disabled
    10.03 16:14:54 [Server] INFO Disabling CustomKits v1.0.1
    10.03 16:14:54 [Server] INFO Gems Disabled
    10.03 16:14:54 [Server] INFO Disabling Gems v1.0.1
    10.03 16:14:54 [Server] INFO Disabling ProtocolLib v3.1.3-SNAPSHOT
    10.03 16:14:54 [Server] INFO Disabling AutoRestart v1.5
    10.03 16:14:54 [Server] INFO Disabling MPK v1.0.0
    
    It shows that every time someone tries to buy a gun.

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

    timtower Administrator Administrator Moderator

    BrushPainter Error is thrown by this line:
    Code:java
    1. if (clicked.getItemMeta().getDisplayName().equalsIgnoreCase(ChatColor.DARK_RED + "Close")) {

    Try checking if there even is a clicked item, if it has itemMeta, if it has a displayname
     
  5. Offline

    BrushPainter

  6. Offline

    Rainy37

    and check onInventoryClickEvent if the e.getItem() is != null then execute your code
     
    BrushPainter likes this.
  7. Offline

    EnderPilot105

    Just try to replace the max value with a number and see if it works BrushPainter
     
Thread Status:
Not open for further replies.

Share This Page