KoryuObihiro/ModDamage — Issue #130: Malfunctioning Permission Evaluation + Malfunctioning /ModDamage Check
Author: taggertv
Created: 2011-10-26 23:39:07+00:00
State: open

Could you please help me. I'm trying to use ModDamage as my damage system for Heroes by giving the heroes a certain permission and then using that permission to determine their damage table. Please help me fix this, it is vital to my server.

Permission Evaluation issue:

2011-10-26 14:33:28 [INFO] [ModDamage] 0.9.5 enabled [PermissionsBukkit v1.2 active]
2011-10-26 14:33:28 [INFO] [ModDamage] Debugging active.
2011-10-26 14:33:28 [INFO] Adding Item alias "pickaxe"
2011-10-26 14:33:28 [INFO] Adding Item alias "spade"
2011-10-26 14:33:28 [INFO] Adding Item alias "hoe"
2011-10-26 14:33:28 [INFO] Adding Item alias "axe"
2011-10-26 14:33:28 [INFO] Adding Item alias "sword"
2011-10-26 14:33:28 [INFO] DAMAGE configuration:
2011-10-26 14:33:28 [INFO] Switch: "switch.attacker.type"
2011-10-26 14:33:28 [INFO] case: "Player"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.civilian"
2011-10-26 14:33:28 [INFO] Routine: "set.1"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.civilian"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.warriori"
2011-10-26 14:33:28 [INFO] Routine: "set.1"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.wielding.WOOD_SWORD"
2011-10-26 14:33:28 [INFO] Routine: "2"
2011-10-26 14:33:28 [INFO] Conditional: "if binom.2"
2011-10-26 14:33:28 [INFO] Routine: "6"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.wielding.STONE_SWORD"
2011-10-26 14:33:28 [INFO] Routine: "4"
2011-10-26 14:33:28 [INFO] Conditional: "if binom.5"
2011-10-26 14:33:28 [INFO] Routine: "8"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.warriorx"
2011-10-26 14:33:28 [INFO] Routine: "2"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.warriorxx"
2011-10-26 14:33:28 [INFO] Routine: "2"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.warriorxx"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.warriorx"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.warriori"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.monki"
2011-10-26 14:33:28 [INFO] Routine: "set.1"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.wielding.AIR"
2011-10-26 14:33:28 [INFO] Routine: "set.4"
2011-10-26 14:33:28 [INFO] Routine: "roll.2"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.monkx"
2011-10-26 14:33:28 [INFO] Routine: "2"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.monkxx"
2011-10-26 14:33:28 [INFO] Routine: "2"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.monkxx"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.monkx"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.monki"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.roguei"
2011-10-26 14:33:28 [INFO] Routine: "set.1"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.wielding.WOOD_HOE"
2011-10-26 14:33:28 [INFO] Routine: "roll.3"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.wielding.STONE_HOE"
2011-10-26 14:33:28 [INFO] Routine: "1"
2011-10-26 14:33:28 [INFO] Routine: "roll.4"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.wielding.BOW"
2011-10-26 14:33:28 [INFO] Routine: "1"
2011-10-26 14:33:28 [INFO] Routine: "roll.2"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.roguex"
2011-10-26 14:33:28 [INFO] Routine: "2"
2011-10-26 14:33:28 [INFO] Conditional: "if attacker.haspermission.battle.roguexx"
2011-10-26 14:33:28 [INFO] Routine: "2"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.roguexx"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.roguex"
2011-10-26 14:33:28 [SEVERE] Invalid Conditional "if attacker.haspermission.battle.roguei"
2011-10-26 14:33:28 [SEVERE] Error in DAMAGE configuration.
2011-10-26 14:33:28 [INFO] [ModDamage] Loaded configuration with one or more errors.

/ModDamage Check Problem:

2011-10-26 14:36:15 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'moddamage' in plugin ModDamage v0.9.5
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
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:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Caused by: java.lang.NullPointerException
at com.platymuus.bukkit.permissions.PermissionInfo.getPermissions(PermissionInfo.java:47)
at com.KoryuObihiro.bukkit.ModDamage.ModDamage.hasPermission(ModDamage.java:459)
at com.KoryuObihiro.bukkit.ModDamage.ModDamage.onCommand(ModDamage.java:419)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
... 12 more
2011-10-26 14:36:22 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'moddamage' in plugin ModDamage v0.9.5
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
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:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Caused by: java.lang.NullPointerException
at com.platymuus.bukkit.permissions.PermissionInfo.getPermissions(PermissionInfo.java:47)
at com.KoryuObihiro.bukkit.ModDamage.ModDamage.hasPermission(ModDamage.java:459)
at com.KoryuObihiro.bukkit.ModDamage.ModDamage.onCommand(ModDamage.java:372)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
... 12 more
2011-10-26 14:36:28 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'moddamage' in plugin ModDamage v0.9.5
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
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:92)
at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
Caused by: java.lang.NullPointerException
at com.platymuus.bukkit.permissions.PermissionInfo.getPermissions(PermissionInfo.java:47)
at com.KoryuObihiro.bukkit.ModDamage.ModDamage.hasPermission(ModDamage.java:459)
at com.KoryuObihiro.bukkit.ModDamage.ModDamage.onCommand(ModDamage.java:395)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
... 12 more