generated from AriasCreations/vsmodtemplate
Adds a config flag for managing warps
This commit is contained in:
parent
e561ced568
commit
e776a6bb9e
4 changed files with 42 additions and 2 deletions
|
@ -211,5 +211,15 @@ namespace AriasServerUtils
|
|||
|
||||
return TextCommandResult.Success();
|
||||
}
|
||||
|
||||
internal static TextCommandResult HandleUpdateASUMgrWarps(TextCommandCallingArgs args)
|
||||
{
|
||||
if (args[0] is bool mgr)
|
||||
ServerUtilities.config.onlyAdminsCreateWarps = mgr;
|
||||
else ServerUtilities.config.onlyAdminsCreateWarps = true;
|
||||
ServerUtilities.MarkDirty();
|
||||
|
||||
return TextCommandResult.Success(Lang.Get($"{ServerUtilities.MOD_ID}:updatedconfig"));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue