public MinecraftTellRaw(string text = "", MinecraftColor color = MinecraftColor.white, bool bold = false, bool italic = false, bool underlined = false, bool obfuscated = false, bool strikethrough = false) { Text = text; Color = color; Bold = bold; Italic = italic; Underlined = underlined; Obfuscated = obfuscated; Strikethrough = strikethrough; }
public MinecraftTextComponent( string text = "", MinecraftColor color = MinecraftColor.white, bool bold = false, bool italic = false, bool underlined = false, bool obfuscated = false, bool strikethrough = false, MinecraftTextComponent[] extra = null) { Text = text; Color = color; Bold = bold; Italic = italic; Underlined = underlined; Obfuscated = obfuscated; Strikethrough = strikethrough; Extra = extra; }
/// <summary> /// Appends color to a message /// </summary> /// <param name="message"></param> /// <param name="color"></param> /// <returns></returns> public static Command ColorMessage(string message, MinecraftColor color) { return(new Command($"§{(int)color:x}{message}")); }
/// <summary> /// Says message in color /// </summary> /// <param name="message"></param> /// <param name="color"></param> /// <returns></returns> public static Command SayInColor(string message, MinecraftColor color) { return(Say(ColorMessage(message, color).MinecraftCommand)); }
public async Task <Command> SayInColor(string message, MinecraftColor color) { return(await Server.RunCommandAsync(CommandBuilder.SayInColor(message, color))); }
/// <summary> /// Goes up by one when the player kills another with the specified team color /// </summary> /// <param name="TeamColor">The team color to check for</param> public static string KillTeam(MinecraftColor TeamColor) { return("teamkill." + TeamColor); }
/// <summary> /// Goes up by one when the player was killed by another player with the specified team color /// </summary> /// <param name="TeamColor">The team color to check for</param> public static string KilledByTeam(MinecraftColor TeamColor) { return("killedByTeam." + TeamColor); }