| [Welcomer] ✘ SmoothWineBeats left the server (Disconnected)
(20:57:07) | Failed to call hook 'OnPlayerSleepEnded' on plugin 'Welcomer v1.5.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.Welcomer.Lang (System.String key, System.String id, System.Object[] args) [0x0000e] in <373eb90113f747879eda584d15f0d162>:0
at Oxide.Plugins.Welcomer.OnPlayerSleepEnded (BasePlayer player) [0x00028] in <373eb90113f747879eda584d15f0d162>:0
at Oxide.Plugins.Welcomer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0014e] in <373eb90113f747879eda584d15f0d162>: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 in OnPlayerSleepEndedSolved
So it's the Lang file to it that bothers it? Do I delete all Lang files from the plugin?
The error is coming from that, yes. Did you customize that file at all?
I changed the colors from <color=lime> to hex colors.
Merged post
They work, but the error shows up within the logs of console
Merged post
They work, but the error shows up within the logs of console
Could you provide the full file here please?
{
"Welcome": "<size=17>Welcome to <color=#0099CC>{0}</color></size>\n--------------------------------------------\n<color=#0099CC>•</color> Type <color=#0099CC>/info</color> for all available commands\n<color=#0099CC>•</color> Read the server rules by typing <color=#0099CC>/info</color>\n<color=#0099CC>•</color> Have fun and respect other players",
"Joined": "<color=#37BC61>✔</color> {0} <color=#37BC61>joined the server</color> from <color=#37BC61>{1}</color>",
"JoinedUnknown": "<color=#37BC61>✔</color> {0} <color=#37BC61>joined the server</color>",
"Left": "<color=#FF4040>✘</color> {0} <color=#FF4040>left the server</color> ({1})"
}
"Welcome": "<size=17>Welcome to <color=#0099CC>{0}</color></size>\n--------------------------------------------\n<color=#0099CC>•</color> Type <color=#0099CC>/info</color> for all available commands\n<color=#0099CC>•</color> Read the server rules by typing <color=#0099CC>/info</color>\n<color=#0099CC>•</color> Have fun and respect other players",
"Joined": "<color=#37BC61>✔</color> {0} <color=#37BC61>joined the server</color> from <color=#37BC61>{1}</color>",
"JoinedUnknown": "<color=#37BC61>✔</color> {0} <color=#37BC61>joined the server</color>",
"Left": "<color=#FF4040>✘</color> {0} <color=#FF4040>left the server</color> ({1})"
}
Looks like you have an old version of the lang there, so you'd need to delete it and let it get re-created with the correct format placeholders, else remove {0} from the "Welcome" message.
Failed to call hook 'OnPlayerSleepEnded' on plugin 'Welcomer v1.5.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.Welcomer.Lang (System.String key, System.String id, System.Object[] args) [0x0000e] in <7b593db9b1a542d9827e055584c59baa>:0
at Oxide.Plugins.Welcomer.OnPlayerSleepEnded (BasePlayer player) [0x00028] in <7b593db9b1a542d9827e055584c59baa>:0
at Oxide.Plugins.Welcomer.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0014e] in <7b593db9b1a542d9827e055584c59baa>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <33f7c42a56934dae8ec04b11017dce31>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 Please see the existing thread on this: https://umod.org/community/welcomer/14827-formatexception-in-onplayersleepended
{
"Welcome": "<size=17>Welcome to the <color=#0099CC>Server</color></size>\n--------------------------------------------\n<color=#0099CC>•</color> Type <color=#0099CC>/info</color> for all available commands\n<color=#0099CC>•</color> Read the server rules by typing <color=#0099CC>/info</color>\n<color=#0099CC>•</color> Have fun and respect other players",
"Joined": "<color=#37BC61>✔</color> {0} <color=#37BC61>joined the server</color> from <color=#37BC61>{1}</color>",
"JoinedUnknown": "<color=#37BC61>✔</color> {0} <color=#37BC61>a noob has joined the server</color>",
"Left": "<color=#FF4040>☒</color> {0} <color=#FF4040>RAGE QUIT!</color> ({1})"
}You mean removed the {0} from Joined, Joined Unknown and Left?
Locked automatically