mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[ChatBoxExtensions] Updated to 2023r172ex1
This commit is contained in:
parent
4c09f9bd57
commit
1d2533ff2b
13 changed files with 41 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
using ABI_RC.Core.Player;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Core.Networking;
|
||||
using ABI_RC.Core.Player;
|
||||
|
||||
namespace NAK.ChatBoxExtensions.Integrations;
|
||||
|
||||
|
@ -18,9 +18,9 @@ public class CommandBase
|
|||
{
|
||||
string partialName = argument.Replace("*", "").Trim();
|
||||
if (String.IsNullOrWhiteSpace(partialName)) return false;
|
||||
return MetaPort.Instance.username.Contains(partialName);
|
||||
return AuthManager.username.Contains(partialName);
|
||||
}
|
||||
return MetaPort.Instance.username == argument;
|
||||
return AuthManager.username == argument;
|
||||
}
|
||||
|
||||
internal static void LocalCommandIgnoreOthers(string argument, Action<string[]> callback)
|
||||
|
@ -53,4 +53,4 @@ public class CommandBase
|
|||
{
|
||||
return CVRPlayerManager.Instance.TryGetPlayerName(guid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue