koishi-plugin-ggcevo-game 1.2.70 → 1.2.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -3400,7 +3400,7 @@ ${achievementList.join("\n")}`;
3400
3400
  pageNum < totalPages ? `输入 pk榜 ${pageNum + 1} 查看下一页` : "已是最后一页"
3401
3401
  ].join("\n");
3402
3402
  });
3403
- ctx.command("ggcevo/切换pk状态", "切换玩家对战状态").alias("切换pk", "pk状态").action(async ({ session }) => {
3403
+ ctx.command("ggcevo/切换pk", "切换玩家对战状态").action(async ({ session }) => {
3404
3404
  const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
3405
3405
  if (!profile) return "您暂未绑定句柄。";
3406
3406
  const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
@@ -4267,7 +4267,7 @@ ${validTypes.join("、")}`;
4267
4267
  if (userCoins < 2e3) {
4268
4268
  return `加入辛迪加海盗需要2000金币,你当前拥有${userCoins}金币`;
4269
4269
  }
4270
- if (!pkData?.enable) {
4270
+ if (pkData && !pkData?.enable) {
4271
4271
  return "当前PK功能未开启,无法加入辛迪加海盗。";
4272
4272
  }
4273
4273
  await session.send(`请问你确定要缴纳2000金币并且永久开启PK功能加入辛迪加海盗吗?(请在30秒内输入“是”确定加入)`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.2.70",
4
+ "version": "1.2.71",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [