Fix drop command bug (#25)

Update coop command
Add /killall to CustomCommands
This commit is contained in:
2022-05-13 22:55:23 +08:00
parent 92f1dc81d9
commit f46e63b189
3 changed files with 18 additions and 6 deletions

View File

@ -513,8 +513,16 @@ namespace GrasscutterTools
{ {
var id = name.Substring(0, name.IndexOf(':')).Trim(); var id = name.Substring(0, name.IndexOf(':')).Trim();
SetCommand(ChkDrop.Checked ? "/drop" : "/give", if (ChkDrop.Checked)
$"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}"); {
NUDGameItemLevel.Enabled = false;
SetCommand("/drop", $"{id} {NUDGameItemAmout.Value}");
}
else
{
NUDGameItemLevel.Enabled = true;
SetCommand("/give", $"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
}
return true; return true;
} }
return false; return false;

View File

@ -41,7 +41,7 @@ Restart Server
Send PM Send PM
/say <player> <message> /say <player> <message>
Pull in team Pull in team
/coop <playerId> <target playerId> /coop @targetId
Suicide Suicide
/killcharacter /killcharacter
Kill Somebody Kill Somebody
@ -50,3 +50,5 @@ List ALL users
/list uid /list uid
Reload service config Reload service config
/reload /reload
KillAll
/killall

View File

@ -41,7 +41,7 @@
私信 私信
/say <player> <message> /say <player> <message>
进来吧你 进来吧你
/coop <playerId> <target playerId> /coop @targetId
自杀 自杀
/killcharacter /killcharacter
暗杀 暗杀
@ -50,3 +50,5 @@
/list uid /list uid
重载服务配置 重载服务配置
/reload /reload
清场
/killall