Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 3ecb19d

Browse files
committed
Bump Version and NotCommand Upgrade
1 parent c944de7 commit 3ecb19d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

APITest/Commands/AddUI.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public class AddUI : NotCommands
2929

3030
public override bool GetRequirePlayer() => true;
3131

32+
public override string[] GetUsage() => ["string"];
33+
3234
public override bool PlayerBasedFunction(Player player, string[] args, out string result)
3335
{
3436
if (!TryGetArgument(args, 1, out string arg1))

NotAnAPI/API/Commands/NotCommands.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ namespace NotAnAPI.API.Commands
1010
/// <summary>
1111
/// Base system for NotAnAPI Commands
1212
/// </summary>
13-
public abstract class NotCommands : ICommand
13+
public abstract class NotCommands : ICommand, IUsageProvider
1414
{
1515
public string Command => GetCommandName();
1616

1717
public string[] Aliases => GetAliases();
1818

1919
public string Description => GetDescription();
2020

21+
public string[] Usage => GetUsage();
22+
2123
public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out string response)
2224
{
2325
if (!CanExecute(sender, out response))
@@ -114,5 +116,7 @@ public static bool TryGetArgument(string[] args, int index, out string result)
114116
public abstract string GetDescription();
115117
public abstract string[] GetAliases();
116118
public abstract string[] GetPerms();
119+
120+
public abstract string[] GetUsage();
117121
}
118122
}

NotAnAPI/NotAnAPIMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class NotAnAPIMain : Plugin<NotAConfig, NotATranslation>
1717
public override string Author => "NotZer0Two";
1818
public override string Name => "NotAnAPI";
1919

20-
public override Version Version => new Version(0, 0, 1);
20+
public override Version Version => new Version(0, 0, 2);
2121

2222
public static NotAnAPIMain Instance = null;
2323

0 commit comments

Comments
 (0)