Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complete #896 #900

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

JWJUN233233
Copy link

简介

相关的 Issues (没有可不填)

Complete #896

Copy link
Member

@ybw0014 ybw0014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

禁用物品的逻辑是重复的。
建议修改指令参数数量判断。

@ybw0014
Copy link
Member

ybw0014 commented Jun 9, 2024

大概这样

if (args.length in 1..2)
  if (args.length == 2) id = args[1]
  else if (sender is Player) id = playerHandItem
  else print(必须为玩家) return

@JWJUN233233 JWJUN233233 requested a review from ybw0014 June 12, 2024 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants