LaserHydra updated BetterChat Mute with a new update entry:
1.0.2
BetterChatMute
Moved
Total Downloads: 2,515 - First Release: Jan 9, 2017 - Last Update: Jan 23, 2018
- 5/5, 10 likes
-
Enerything I've done are in. Thanks again!
But one question - why does you calling SaveData in foreach? Isn't that better use it after we come thro all expired mutes?
Also - You left useless "You Are Muted" lang line -
I think it is bad idea to save data each iteration.
Can you use this instead?
Code:if(expired.Count > 0) SaveData(mutes);
-
/mute vlad 12d
Failed to call hook 'CmdMute' on plugin 'BetterChatMute v1.0.2' (TimeZoneNotFoundException: Exception of type 'System.TimeZoneNotFoundException' was thrown.) -
Wulf Community Admin
-
-
LaserHydra updated BetterChat Mute with a new update entry:
1.0.3
-
why remove the muteall function?
-
I really don't understand why you use seperate variable hasExpired if you can just check the count elements of the list after all iterations.
-
plugin dont work at the moment,error cannot load.. older version works
-
-
Hi
Brill plugin but got an issue since betterchat split into BetterChat + Betterchatmute don't know why but this is causing an issue with the Quests plugin as in mute /unmute dont seem to work it tells the person they are muted but they can still type in chat. not sure if its this plugin or quests that need looking at but i'll post on quests page as well
Many Many Thanks
PureJaguar -
Can mutes be printed to Console? This would be great to ensure that staff are not abusing the permission
-
-
-
Slack | Oxide
This would be fantastic to keep track of mutesA message such as 'Initator mute Playername for xx duration' would be amazing!
-
In the way I did it, it only saves the data if something actually changed (a mute expired)
[DOUBLEPOST=1487745541][/DOUBLEPOST] -
For those wanting a Slack integration with the Slack API, this will work straight away no setup required
@LaserHydra got it sorted with this one, only took around 8 lines -
1. Use diff and upload patch file here. This should work.
2. You forgot about putting expiried mutes to slack =3 -
My solution:
Code:timer.Repeat(10, 0, () => { List<string> expired = mutes.Where(m => m.Value.Expired).Select(m => m.Key).ToList(); foreach (string id in expired) { mutes.Remove(id); PublicMessage("Mute Expired", new KeyValuePair<string, string>("player", players.FindPlayerById(id)?.Name)); } if (expired.Count > 0) SaveData(mutes); });