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

            warns.Remove(warns[warnId]);
            customData.AddOrUpdate(CustomDataKey, warns);
        }
예제 #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);
        }
예제 #3
0
 private void SetCutsomData()
 {
     CustomData.AddOrUpdate("version", Version);
 }
예제 #4
0
파일: Core.cs 프로젝트: Deaddiamond123/Core
 private void SetCustomData()
 {
     CustomData.AddOrUpdate("version", Version);
     CustomData.AddOrUpdate("devbuild", IsDevelopmentBuild());
 }