on load: if folder "plugins/MrChatControl/Addons/QBans" doesn't exists: create folder "plugins/MrChatControl/Addons/QBans" if file "plugins/MrChatControl/Addons/QBans/Mute.yml" doesn't exists: create file "plugins/MrChatControl/Addons/QBans/Mute.yml" set yaml value "Mute" from "plugins/MrChatControl/Addons/QBans/Mute.yml" to "600 seconds" set {Mute} to yaml value "Mute" from file "plugins/MrChatControl/Addons/QBans/Mute.yml" if file "plugins/MrChatControl/Addons/QBans/Permissions.yml" doesn't exists: create file "plugins/MrChatControl/Addons/QBans/Permissions.yml" set yaml value "MutePermission" from plugins/MrChatControl/Addons/QBans/Permissions.yml" to "QBans.mute" set {MutePermission} to yaml value "MutePermission" from file plugins/MrChatControl/Addons/QBans/Permissions.yml" variables: {mute::%player%} = false command /mute [] []: trigger: if sender has permission "{MutePermission}": if arg 1 is set: if arg 2 is set: set {mute::%arg 1%} to true send "&aWyciszyles gracza &c%arg 1% &aza: &c%arg 2%" send "&aZostales wyciszony przez &c%sender% &aza: &c%arg 2" wait {Mute} set {mute::%arg 1%} to false else: send "&cPodaj powod!" stop else: send "&cPodaj nick gracza!" stop else: send "&cBrak uprawnien!" stop