forked from HarryW123/AdvancedInvestigate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Main.cs
39 lines (32 loc) · 814 Bytes
/
Main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Rocket.Core.Logging;
using Rocket.Core.Plugins;
using SDG.Unturned;
using Steamworks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AdvancedInvestigate
{
public class Main : RocketPlugin
{
public static Main Instance;
protected override void Load()
{
Instance = this;
Logger.Log("Plugin Loaded");
}
protected override void Unload()
{
}
private void FixedUpdate()
{
}
public static string GetIP(CSteamID id)
{
P2PSessionState_t sessionState;
SteamGameServerNetworking.GetP2PSessionState(id, out sessionState);
return Parser.getIPFromUInt32(sessionState.m_nRemoteIP);
}
}
}