2021-11-13 13:48:38 +01:00
|
|
|
import RegistrationHandler from "./RegistrationHandler"
|
|
|
|
|
2021-11-08 17:34:26 +01:00
|
|
|
export default class MuteHandler {
|
|
|
|
public mute(player: string): boolean {
|
2021-11-13 13:48:38 +01:00
|
|
|
const register = RegistrationHandler.Instance
|
|
|
|
const binding = register.getNameRegisteredForSteamUser(player)
|
|
|
|
console.log(`Performing mute wizardry on ${player}, ${JSON.stringify(binding)}`)
|
|
|
|
|
|
|
|
|
2021-11-08 17:34:26 +01:00
|
|
|
return true
|
|
|
|
}
|
|
|
|
public unmute(player: string): boolean {
|
2021-11-13 13:48:38 +01:00
|
|
|
const register = RegistrationHandler.Instance
|
|
|
|
const binding = register.getNameRegisteredForSteamUser(player)
|
2021-11-08 17:34:26 +01:00
|
|
|
console.log(`Performing unmute wizardry on ${player}`)
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
public unmuteAll(): boolean {
|
2021-11-13 13:48:38 +01:00
|
|
|
const register = RegistrationHandler.Instance
|
|
|
|
const binding = register.getAllMappings()
|
|
|
|
|
2021-11-08 17:34:26 +01:00
|
|
|
console.log(`Performing unmute wizardry on all players`)
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|