mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-29 13:40:00 +08:00
🐛 修正作物阶段绘制错误的BUG
🐛 修复偷菜会导致偷自己的BUG
This commit is contained in:
@@ -465,6 +465,10 @@ async def _(session: Uninfo, name: Match[str]):
|
||||
|
||||
safeName = sanitize_username(name.result)
|
||||
|
||||
if safeName == "神秘农夫":
|
||||
await MessageUtils.build_message("农场名不支持特殊符号!").send(reply_to=True)
|
||||
return
|
||||
|
||||
result = await g_pDBService.user.updateUserNameByUid(uid, safeName)
|
||||
|
||||
if result == True:
|
||||
|
||||
Reference in New Issue
Block a user