Modding:SaveGame Data Storage: Difference between revisions

From Vintage Story Wiki
Line 64: Line 64:
</syntaxhighlight>
</syntaxhighlight>


The chat command delegate has three parameters: the player issuing the command, the group in which this command was entered, and the arguments sent for the command.
This has three parameters: the player issuing the command, the group in which this command was entered, and the arguments sent for the command.


The first thing we do is check that there is at least an argument given, with <code>if (args.Length < 1)</code>. If there isn't, we show the player the list of possible arguments and we go no further.
The first thing we do is check that there is at least an argument given, with <code>if (args.Length < 1)</code>. If there isn't, we show the player the list of possible arguments and we go no further.