generated from AriasCreations/vsmodtemplate
Fix setting/going/deleting home without name argument
This commit is contained in:
parent
d35d888386
commit
9522b6d941
4 changed files with 10 additions and 9 deletions
|
@ -20,7 +20,7 @@ namespace AriasServerUtils
|
|||
string homeName = "default";
|
||||
if (args.ArgCount > 0)
|
||||
{
|
||||
homeName = args[0] as string;
|
||||
homeName = args[0] as string ?? "default";
|
||||
}
|
||||
|
||||
if (args.Caller.Player is IServerPlayer isp)
|
||||
|
@ -47,7 +47,7 @@ namespace AriasServerUtils
|
|||
string homeName = "default";
|
||||
if (args.ArgCount > 0)
|
||||
{
|
||||
homeName = args[0] as string;
|
||||
homeName = args[0] as string ?? "default";
|
||||
}
|
||||
|
||||
if (args.Caller.Player is IServerPlayer isp)
|
||||
|
@ -96,7 +96,7 @@ namespace AriasServerUtils
|
|||
string homeName = "default";
|
||||
if (args.ArgCount > 0)
|
||||
{
|
||||
homeName = args[0] as string;
|
||||
homeName = args[0] as string ?? "default";
|
||||
}
|
||||
|
||||
if (args.Caller.Player is IServerPlayer isp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue