Hello, I have the currently problem that I can't mute someone with the plugin I use for Oxide 2.
It says in chat "<Name has been muted for X min" but they are still able to talk. I looked into the .lua but everything seems fine for me. So idk why it still does not work. Help would be nice =D.
Solved Chat mute
Discussion in 'Plugin Requests' started by Titanium 2, Aug 7, 2015.
-
You probably use another plugin that edits the chat and thats the one that sends the message
-
So what I have to do then? I can't get you really.
[DOUBLEPOST=1438961873][/DOUBLEPOST]That's all plugins I have! http://prntscr.com/81y4lg -
Just show me all your plugins.
And.. i said that: If you have two or more plugins that are editing the chat they will send a double message until the two authors will try to fix that together. So for example lets say that you have a plugin that mutes other players it will work ofc BUT if you have another plugin like PaiN Prefix it will send the message unless i will add the check "if isMuted(player) then return end" so it wont send the message. Simple. -
Plugins: http://prntscr.com/81y4lg
-
See you got p-prefixes which i made and adds prefixes to the names + sends the message. Since i'm not making plugins for legacy.. i will just give u the plugin which will have the Mute Check give me a sec.
-
Alright, thanks.
-
Try this
Attached Files:
-
-
I just know that if I change configs, I just can use "oxide.reload" that it works for plugins too?
or restart needed? -
-
I just replaced the file, without restart but with oxide.reload. People still able to talk even if I mute them.
-
-
Code:
Failed to call hook 'isMuted' on plugin 'Simple Mute' File: simplemute.lua Line: 157 Object reference not set to an instance of an object: at Oxide.Game.RustLegacy.Libraries.RustLegacy.UserIDFromPlayer (.NetUser netuser) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 11:54 PM [Info] Barret Wallace: remove
Last edited by a moderator: Aug 7, 2015 -
Try this file then.
Attached Files:
-
-
Code:
Failed to call hook 'isMuted' on plugin 'Simple Mute' File: simplemute.lua Line: 157 Object reference not set to an instance of an object: at Oxide.Game.RustLegacy.Libraries.RustLegacy.UserIDFromPlayer (.NetUser netuser) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInf
-
Attached Files:
-
-
Fixed, thanks
-
-
Yes, everything seems to work. Expect this appears in logs
Code:Failed to call hook 'OnPlayerChat' on plugin 'PaiN Prefix' File: p-prefixes.lua Line: 47 Object reference not set to an instance of an object: at Oxide.Game.RustLegacy.Libraries.RustLegacy.SendChatMessage (.NetUser netUser, System.String name, System.String message) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
But work everything, do not know what error it is but all works. -
YEAH probably too much C# at line 47 remove the ";" at the end of the line LOL