BetterChatMute

Moved

Total Downloads: 2,515 - First Release: Jan 9, 2017 - Last Update: Jan 23, 2018

5/5, 10 likes
  1. Failed to call hook 'OnBetterChat' on plugin 'BetterChatMute v1.0.7' (InvalidCastException: Cannot cast from source type to destination type.) is there any fix ?
     
  2. When i give myself an item from the console this will make it so it won't broadcast you spawning stuff in?
     
  3. No. Look for "RemoveAAA" for that functionality
     
  4. Where do I find it though?
     
  5. Wulf

    Wulf Community Admin

    Rust Plugins section. There's also one called NoGiveNotices, also there.
     
  6. Code:
    18:49 [Error] Failed to call hook 'OnBetterChat' on plugin 'BetterChatMute v1.0.7' (InvalidCastException: Cannot cast from source type to destination type.)
    18:49 [Stacktrace]   at Oxide.Plugins.BetterChatMute.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 
     
  7. Please remove seconds.. it's sooooo annoying having to type "mute name 15m1s" and then HOPE it will fit with 15 min - otherwise it will show 15 minutes and 1 seconds - or if you write "mute name 15m", then it usually shows as 14 minutes and 59 seconds. Looks horrible, and seconds adds nothing.
     
  8. is possible 1 Player mute 1 Player.

    He will be mutated only for him.
     
  9. API METHODS!!!
     
  10. LaserHydra updated BetterChat Mute with a new update entry:

    1.0.8


    [DOUBLEPOST=1497781846][/DOUBLEPOST]
    YEYE!!!
     
  11. Trying to use this plugin and /toggleglobalmute functionality. I have both this and BetterChat updated to latest version but when I do /toggleglobalmute the message comes up in chat but everyone can still talk.

    (21:12:33) | Calling hook OnUserChat resulted in a conflict between the following plugins: BetterChatMute - False (Boolean), BetterChat (True (Boolean))

    Says that just after people talk.
     
  12. Globalmute don't work :/
     
  13. Code:
    (13:10:31) | [Oxide] 13:10 [Error] Failed to call hook 'OnBetterChatTimeMuted' on plugin 'DiscordMessages v1.1.1' (InvalidCastException: Value is not a convertible object: System.TimeSpan to System.DateTime)
    (13:10:31) | [Oxide] 13:10 [Stacktrace] at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
    at System.Convert.ChangeType (System.Object value, System.Type conversionType) [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
     
    Last edited by a moderator: Jun 21, 2017
  14. Wulf

    Wulf Community Admin

    Looks like a bad setting in the DiscordMessages plugin you are using.
     
  15. Anyone way to make BetterChatMute to mute players in PM
     
  16. Is it possible You add AutoMute?
     
  17. Fixed that issue.

    @LaserHydra - Can you change API_TimeMute to this? Seems as if you've just copied and pasted it without changing it.

    Code:
            private void API_TimeMute(IPlayer target, IPlayer player, TimeSpan timeSpan, bool callHook = true, bool broadcast = true)
            {
                mutes[target.Id] = new MuteInfo(DateTime.UtcNow + timeSpan);
                SaveData(mutes);            if (callHook)
                    Interface.CallHook("OnBetterChatTimeMuted", target, player, timeSpan);            if (broadcast)
                {
                    PublicMessage("Muted",
                        new KeyValuePair<string, string>("initiator", player.Name),
                        new KeyValuePair<string, string>("player", target.Name),
                        new KeyValuePair<string, string>("time", FormatTime(timeSpan)));
                }
            }
    
     
    Last edited by a moderator: Jun 28, 2017