1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-11-12 17:38:22 -05:00
MyMcRealms/Minecraft-Realms-Emulator/Attributes/RequireMinecraftCookieAttribute.cs
2024-04-20 09:20:30 +02:00

16 lines
416 B
C#

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");
}
}
}