execute('UPDATE users SET block = 1 WHERE id = ?', $target); } public static function unblockUser(int $target) { self::addEffectStatusToUserLog($target, "Блокировка" . self::STATUS_OFF); Db::getInstance()->execute('UPDATE users SET block = 0 WHERE block = 1 AND id = ?', $target); } public static function addToUserLog(int $target, string $message, int $senderId) { GameLogs::addUserLog($target, $message, "moderation", $senderId); } public static function setAlign(int $target, int $align) { Db::getInstance()->execute('UPDATE users SET align = ? WHERE id = ?', [$align, $target]); } public static function addChatSysMsg(string $message) { Db::getInstance()->execute('INSERT INTO chat (user_id,msg,type) VALUES (-1,?,?)', [$message, 'sys']); } public static function addUserCheck(int $target) { self::addEffectStatusToUserLog($target, UserEffect::$effectName[20]); UserEffect::add($target, 20, UserEffect::$effectName[20], strtotime('3days')); } }