TempMute

Approved TempMute 1.1.1

No permission to download

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
Jakkee submitted a new resource:

TempMute - Temporary mute players and automatically unmutes

Description:
Temporary mute players with an easy command!
This plugin will automatically unmute players after their time is up.

Installation:
- Place plugin into Python Plugins folder
- Reload or Restart
- Done

Commands:
- /tempmute <Player Name>
- /unmute <Player Name> (This is a rust++ command)

INI:
[Settings]
MuteTime=1800
;MuteTime is in seconds, 1800 = 30minutes

To do:
None, Tell me in the discussions.
Read more about this resource...
 

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
[IronPython] Error in plugin TempMute:
Traceback (most recent call last):
File "<string>", line 20, in On_PluginInit
TypeError: iteration over non-sequence of type NoneType

This error only happens when the plugin is loaded before the first execution of tempmute on a fresh server (empty datastore)

I had a glitch because of

rustpp.Mute(long(id), "Re-Add (ID: " + str(id) + ")")

Somehow it muted me 2 times. Under my normal name and and under "Re-Add".

This happened because I used /unmute on my name, and I got readded because the DataStore entry still existed
 
Last edited:

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
[7/21/2016 2:23:18 PM] [Error] [IronPython] Error in plugin TempMute:
[7/21/2016 2:23:18 PM] [Error] Traceback (most recent call last):
File "<string>", line 20, in On_PluginInit
TypeError: iteration over non-sequence of type NoneType
I think you are using V1.0?
I think in 1.1 i fixed that, If you open the .Py is line 20: Count = 0
 

forbiden

New Member
Member
Aug 29, 2017
12
2
3
36
Players after muted again can insult other players in voice With Using V In Keyboard :|
Add an option for mute voice too
 
  • Informative
Reactions: Jakkee

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
Players after muted again can insult other players in voice With Using V In Keyboard :|
Add an option for mute voice too
An idea that I can think of fast would be to add a timer to that ID of the muted player who changes the V key for another random key every second, but ..... Is it really necessary ?, let's see what @Jakkee thinks
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
I think idea of voice muting as well, Not sure how to go about it
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
I think idea of voice muting as well, Not sure how to go about it
Maybe ... Creating a dictionary of letters (A, B, C, D, E, F, G), count how many letters the dictionary has (example 7 in this case), then create a timer for that player every X seconds , then randomize a letter from 0-7 and send Player.SendCommand ("input.bind Up RANDOMxd None") each time the timer runs, which you think @Jakkee?
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
There should be away to cancel the transmission of voice?
I'm just talking from a speculative point of view, but I imagine that should fuck the brain of the player who would never know which key need press to speak with the voice ***