Recode of the original ChatManager from PermissionsEx, which is no longer supported.