1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-11-09 16:38:21 -05:00
MyMcRealms/Minecraft-Realms-Emulator/Attributes/RequireMinecraftCookieAttribute.cs

16 lines
416 B
C#
Raw Normal View History

2024-04-20 03:20:30 -04:00
namespace Minecraft_Realms_Emulator.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class RequireMinecraftCookieAttribute : Attribute
{
public RequireMinecraftCookieAttribute()
{
}
public bool HasMinecraftCookie(string cookie)
{
return cookie.Contains("sid") && cookie.Contains("user") && cookie.Contains("version");
}
}
}