Skip to content

Commit adac840

Browse files
GetDatabase method for ProvidedArgs
1 parent 38621e5 commit adac840

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ArgumentSystem/ProvidedArguments.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using LabApi.Features.Wrappers;
22
using SER.ArgumentSystem.Arguments;
33
using SER.ArgumentSystem.Structures;
4+
using SER.FileSystem.Structures;
45
using SER.Helpers;
56
using SER.Helpers.Exceptions;
67
using SER.Helpers.Extensions;
@@ -20,6 +21,11 @@ public class ProvidedArguments(Method method)
2021
{
2122
private Dictionary<(string name, Type type), List<DynamicTryGet>> Arguments { get; } = [];
2223

24+
public Database GetDatabase(string argName)
25+
{
26+
return GetValue<Database, DatabaseArgument>(argName);
27+
}
28+
2329
public Script GetCreatedScript(string argName)
2430
{
2531
return GetValue<Script, CreatedScriptArgument>(argName);

0 commit comments

Comments
 (0)