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

            warns.Remove(warns[warnId]);
            customData.AddOrUpdate(CustomDataKey, warns);
        }
Esempio 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);
        }
Esempio n. 3
0
 private void SetCutsomData()
 {
     CustomData.AddOrUpdate("version", Version);
 }
Esempio n. 4
0
 private void SetCustomData()
 {
     CustomData.AddOrUpdate("version", Version);
     CustomData.AddOrUpdate("devbuild", IsDevelopmentBuild());
 }