execute('UPDATE battles.users SET block = 1 WHERE id = ?', $target); } public static function unBlockUser(int $target) { self::addEffectStatusToUserLog($target, "Блокировка" . self::STATUS_OFF); DBPDO::INIT()->execute('UPDATE battles.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) { DBPDO::INIT()->execute('UPDATE users SET align = ? WHERE id = ?', [$align, $target]); } public static function addChatSysMsg(string $message) { DBPDO::INIT()->execute('INSERT INTO chat (user_id,msg,type) VALUES (-1,?,?)', [$message, 'sys']); } public static function addUserCheck(int $target) { self::addEffectStatusToUserLog($target, UserEffects::$effectName[20]); User::addUserEffect($target, 20, UserEffects::$effectName[20], strtotime('3days')); } }