public static void RemoveWarn(this CustomData customData, int warnId) { var warns = customData.GetWarns(); warns.Remove(warns[warnId]); customData.AddOrUpdate(CustomDataKey, warns); }
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); }
private void SetCutsomData() { CustomData.AddOrUpdate("version", Version); }
private void SetCustomData() { CustomData.AddOrUpdate("version", Version); CustomData.AddOrUpdate("devbuild", IsDevelopmentBuild()); }