FormatException in LangSolved

Thanks for your quick response and update!

I have this error popping up anytime i use the hammer now though:

Failed to call hook 'CmdCheckEntity' on plugin 'AdminHammer v1.9.0' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000ff] in :0 
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in :0 
  at System.String.Format (System.String format, System.Object[] args) [0x00020] in :0 
  at Oxide.Plugins.AdminHammer.Lang (System.String key, System.String id, System.Object[] args) [0x0000e] in :0 
  at Oxide.Plugins.AdminHammer.CheckEntity (BasePlayer player) [0x00a04] in :0 
  at Oxide.Plugins.AdminHammer.CmdCheckEntity (BasePlayer player) [0x0001c] in :0 
  at Oxide.Plugins.AdminHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002c1] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

It seems to work still, just doesn't seem to use the new lang for logging even thught i've set it to true

My config:

{
  "ChatCommand": "ah",
  "CommandToRun (Leave blank for no command)": "",
  "LogAdminInfo": true,
  "LogToConsole": true,
  "PerformanceMode": false,
  "ShowBoxContents": true,
  "ShowSphere": false,
  "ToolDistance": 200.0,
  "ToolUsed": "hammer"
}
Oh, I will fix that

Merged post

Did you edit the Lang file?
I believe I did a while back just to add some color.

Here it is. 
(Guess pastebin doesnt wanna work, I'll post it in the morning.)

Merged post

Sorry for the wait.

{
  "NoAuthorizedPlayers": "No authorized players.",
  "AuthorizedPlayers": "Authorized players in the {0} owned by {1}:",
  "NoEntityFound": "No entity found. Look at an entity and right-click while holding a {0}.",
  "NoOwner": "No owner found for this entity.",
  "ChatEntityOwnedBy": "This {0} is owned by {1}",
  "ConsoleEntityOwnedBy": "This {0} is owned by http://www.steamcommunity.com/profiles/{1}",
  "ToolActivated": "You have <color=green>enabled</color> AdminHammer.",
  "ToolDeactivated": "You have <color=red>disabled</color> AdminHammer.",
  "DoorCode": "Door Code: <color=yellow>{0}</color>",
  "PerformanceMode": "Performance mode is enabled, so you have to use the chat command <color=yellow>/{0}</color> instead of right-clicking",
  "AdminUsedTool": "{0} [{1}] used AdminHammer on a {2} owned by {3} [{4}] located at {5}"
}

Update: Getting the same error with a fresh lang file.

Am I the only one here having this issue with the new logging?

In game seems to work fine but console spams:

Failed to call hook 'CmdCheckEntity' on plugin 'AdminHammer v1.9.1' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000ff] in <599589bf4ce248909b8a14cbe4a2034e>:0
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <599589bf4ce248909b8a14cbe4a2034e>:0
  at System.String.Format (System.String format, System.Object[] args) [0x00020] in <599589bf4ce248909b8a14cbe4a2034e>:0
  at Oxide.Plugins.AdminHammer.Lang (System.String key, System.String id, System.Object[] args) [0x0000e] in :0
 at Oxide.Plugins.AdminHammer.CheckEntity (BasePlayer player) [0x00a04] in :0
  at Oxide.Plugins.AdminHammer.CmdCheckEntity (BasePlayer player) [0x0001c] in :0
  at Oxide.Plugins.AdminHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002c1] in :0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000ff] in <a8ed250850854b439cedc18931a314fe>:0
at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <a8ed250850854b439cedc18931a314fe>:0
at System.String.Format (System.String format, System.Object[] args) [0x00020] in <a8ed250850854b439cedc18931a314fe>:0
at Oxide.Plugins.AdminHammer.Lang (System.String key, System.String id, System.Object[] args) [0x0000e] in <32a422ddaed14093b8feb610c0e82ced>:0
at Oxide.Plugins.AdminHammer.CheckEntity (BasePlayer player) [0x00a04] in <32a422ddaed14093b8feb610c0e82ced>:0
at Oxide.Plugins.AdminHammer+AH.FixedUpdate () [0x0008e] in <32a422ddaed14093b8feb610c0e82ced>:0​


Same here.
@Wulf do you know what the problem is here?

Did I make a mistake in the code, or is it an issue with the Lang message?
mvrb
@Wulf do you know what the problem is here?

Did I make a mistake in the code, or is it an issue with the Lang message?
One of the messages under CheckEntity is not being supplied with the expected number of arguments for replacement/formatting. So either one is null or the argument numbers being supplied don't match the message from the Lang API.
I haven't changed a thing in the Lang file, it is exactly as the plugin makes it upon install. 

(11:45:18) | Failed to call hook 'CmdCheckEntity' on plugin 'AdminHammer v1.10.0' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)

at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000ff] in <a8ed250850854b439cedc18931a314fe>:0

at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <a8ed250850854b439cedc18931a314fe>:0

at System.String.Format (System.String format, System.Object[] args) [0x00020] in <a8ed250850854b439cedc18931a314fe>:0

at Oxide.Plugins.AdminHammer.Lang (System.String key, System.String id, System.Object[] args) [0x0000e] in <ef5f4babeb04458c89536a0975c7ccbf>:0

at Oxide.Plugins.AdminHammer.CheckEntity (BasePlayer player) [0x00a0f] in <ef5f4babeb04458c89536a0975c7ccbf>:0

at Oxide.Plugins.AdminHammer.CmdCheckEntity (BasePlayer player) [0x0001c] in <ef5f4babeb04458c89536a0975c7ccbf>:0

at Oxide.Plugins.AdminHammer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002c1] in <ef5f4babeb04458c89536a0975c7ccbf>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

Locked automatically