Exemplo n.º 1
0
        public static void RemoveWarn(this CustomData customData, int warnId)
        {
            var warns = customData.GetWarns();

            warns.Remove(warns[warnId]);
            customData.AddOrUpdate(CustomDataKey, warns);
        }
Exemplo n.º 2
0
        public static void AddWarn(this CustomData customData, ShPlayer issuer, string reason)
        {
            var warns = customData.GetWarns();

            warns.Add(new SerializableWarn(issuer.username, reason, DateTimeOffset.Now));
            customData.AddOrUpdate(CustomDataKey, warns);
        }
Exemplo n.º 3
0
 private void SetCutsomData()
 {
     CustomData.AddOrUpdate("version", Version);
 }
Exemplo n.º 4
0
 private void SetCustomData()
 {
     CustomData.AddOrUpdate("version", Version);
     CustomData.AddOrUpdate("devbuild", IsDevelopmentBuild());
 }