mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
i dont rememebr
This commit is contained in:
parent
374ab6c11e
commit
86828a94e2
48 changed files with 1637 additions and 841 deletions
38
FuckVivox/VivoxHelpers.cs
Normal file
38
FuckVivox/VivoxHelpers.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using ABI_RC.Core.IO;
|
||||
using ABI_RC.Core.Networking;
|
||||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Systems.Communications;
|
||||
using NAK.FuckVivox;
|
||||
|
||||
namespace FuckMLA;
|
||||
|
||||
public static class VivoxHelpers
|
||||
{
|
||||
public static void AttemptLogin()
|
||||
{
|
||||
if (!AuthManager.IsAuthenticated)
|
||||
{
|
||||
FuckVivox.Logger.Msg("Attempted to log in without being authenticated!");
|
||||
return;
|
||||
}
|
||||
VivoxServiceManager.Instance.Login(MetaPort.Instance.ownerId, MetaPort.Instance.blockedUserIds);
|
||||
}
|
||||
|
||||
public static void AttemptLogout()
|
||||
{
|
||||
if (!VivoxServiceManager.Instance.IsLoggedIn())
|
||||
{
|
||||
FuckVivox.Logger.Msg("Attempted to log out when not logged in.");
|
||||
return;
|
||||
}
|
||||
VivoxServiceManager.Instance.Logout();
|
||||
}
|
||||
|
||||
public static void PleaseReLoginThankYou()
|
||||
{
|
||||
FuckVivox.Logger.Msg("PleaseReLoginThankYou!!!");
|
||||
|
||||
AttemptLogout();
|
||||
SchedulerSystem.AddJob(AttemptLogin, 3f, 1, 1);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue