Skip to content

Commit 4b6ea28

Browse files
committed
Added option to remove server password
1 parent 5b92891 commit 4b6ea28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ChatCommands/ServerPasswordCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public ServerPasswordCommand() : base(
2323

2424
if (args.Length < 1)
2525
{
26-
player.Message($"Invalid arguments. Usage: {Usage}");
26+
Server.ExecuteCommand("setpass");
27+
player.SayToChat("Server password removed");
2728
return;
2829
}
2930

0 commit comments

Comments
 (0)