/// <summary> /// Intializes a new <see cref="ExperienceModifyCommand"/> /// </summary> /// <param name="selector">Selector selecting the players whose experience to change</param> /// <param name="changeLevels">True if the players' levels should change. False if the players' points should change</param> /// <param name="modifier">The way to modify the players experience</param> /// <param name="value">The value to modify with</param> public ExperienceModifyCommand(BaseSelector selector, bool changeLevels, ID.AddSetModifier modifier, int value) { Selector = selector; ChangeLevels = changeLevels; Modifier = modifier; Value = value; }
/// <summary> /// Intializes a new <see cref="TimeModifyCommand"/> /// </summary> /// <param name="time">The value to modify with</param> /// <param name="modifier">The way to use the modify value</param> public TimeModifyCommand(NoneNegativeTime <int> time, ID.AddSetModifier modifier) { Time = time; Modifier = modifier; }
/// <summary> /// Intializes a new <see cref="WorldborderSizeCommand"/> /// </summary> /// <param name="size">The size to modify with</param> /// <param name="modifier">The way to modify the size</param> /// <param name="time">The amount of time to modification takes. Leave null to make it happen instant</param> public WorldborderSizeCommand(double size, ID.AddSetModifier modifier, NoneNegativeTime <int>?time) { Modifier = modifier; Size = size; Time = time; }