Where does the Muted players go when they are muted? im using essentials /mute and i don't know where i can find a file where the muted players get stored.
Just checked the source code, and when calling User#setMute(boolean), it will then call EssentialsUserConf#setProperty("muted", boolean);. Essentially, this is stored in the player-specific .yml file
Okay now the problem is, i have like 20.000 in the essentials userdata folder xd how can i UnMute all without deleting all the userdata :/
You would need to create a batch script to cycle through all the .yml files in your userdata folder and change 'muted' to false.
I think a python script would be easier Code (Python): import os for file in os.listdir(): if file.endswith(".yml"): f = open(file, "w+") f.write(f.read().replace("muted: true", "muted: false")) f.close()
Sorry for my noobie question, how can i start this script and do with this text in a Ubuntu (linux) dedicated? ^^ im 0% familiarized with that xD
Put this file in the same folder with all the players' configs in. go into that folder by "cd"int into it, then run this command Code (Bash): python3 filename Where filename is the name of the file you put the script in Warning: This script, depending on how large the files are, may be memory intensive. If the program were to crash, one of your yml files would be left disfigured. I am not liable for any damages this may cause.
Yes, that is correct. Also, make sure that you have enough RAM available for the whole file to be stored into memory.
Run this instead, it shows where it is at as a percentage: Code (Python): import os files = os.listdir() length = len(files) place = 1 for file in files: if file.endswith(".yml"): f = open(file, "w+") f.write(f.read().replace("muted: true", "muted: false")) f.close() print("done", str(place/length*100)+"%") place += 1 Also, just in case your system reboots or anything bad happens, make a backup