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();
SetCommand(ChkDrop.Checked ? "/drop" : "/give",
$"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
if (ChkDrop.Checked)
{
NUDGameItemLevel.Enabled = false;
SetCommand("/drop", $"{id} {NUDGameItemAmout.Value}");
}
else
{
NUDGameItemLevel.Enabled = true;
SetCommand("/give", $"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
}
return true;
}
return false;

View File

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

View File

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