Skip to content

Commit ab6bcda

Browse files
fix 'sender' argument being required for Command method
1 parent 1686611 commit ab6bcda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MethodSystem/Methods/ServerMethods/CommandMethod.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using SER.Helpers.Extensions;
55
using SER.MethodSystem.BaseMethods;
66
using SER.MethodSystem.MethodDescriptors;
7+
using SER.VariableSystem.Variables;
78
using Console = GameCore.Console;
89

910
namespace SER.MethodSystem.Methods.ServerMethods;
@@ -21,7 +22,7 @@ public string AdditionalDescription
2122
new TextArgument("command"),
2223
new PlayerArgument("sender")
2324
{
24-
DefaultValue = null
25+
DefaultValue = new(null, "unspecified")
2526
}
2627
];
2728

0 commit comments

Comments
 (0)