1. JaMan | Rick De Kikker submitted a new resource:

    Chat Clear - Clear your chat with the /clear command

    Read more about this resource...
    [DOUBLEPOST=1502256048][/DOUBLEPOST]Hello guys:

    This is a very simple plugin i will update more after my holiday!
    (1\2 weeks)
     
    Last edited by a moderator: Aug 9, 2017
  2. Cool!
    Is this to help with the innate chat freezing problem?
     
  3. Yeah it Will fix chatlaggs if u type /clear!
     
  4. @JaMan | Rick De Kikker

    I've just installed your plugin and while useing the command /c;lear I got this error showing up into my console
    Code:
    Error] Failed to call hook 'TestCommand' on plugin 'ChatClear v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    00:06 [Stacktrace]   at Oxide.Plugins.ChatClear.TestCommand (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ChatClear.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  5. Hmm what is your file name ?
    [DOUBLEPOST=1502339995][/DOUBLEPOST]last time i checked was yesterday and that worked fine.
     
    Last edited by a moderator: Aug 10, 2017
  6. well like normal as other plugins ChatClear.cs and there isn't any lnag or config or data file
     
  7. Wulf

    Wulf Community Admin

    The error is that you have something that is null in the plugin when the chat command is called. You'd need to find out what is null and add a null check or work around it. It's not related to the filename.
     
  8. When I wrote this for you I didn't expect you to release it publicly. The Null is from the ChatManager being null, so just do if(cmc != null) before cmc.ClearChat(); on line 23
     
  9. I'll update it asap!

    Sorry tho..
     
  10. JaMan | Rick De Kikker updated Chat Clear with a new update entry:

    1.0.1

     
  11. JaMan | Rick De Kikker updated Chat Clear with a new update entry:

    1.0.2

     
  12. Wulf

    Wulf Community Admin

    @JaMan | Rick De Kikker, keep in mind that the Lang API is a requirement for plugins here. Your plugin contains messages that are not using it.