Help for syntax in println

Discussion in 'Plugin Development' started by Pigi0204, Jul 17, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Pigi0204

    How can I do the "Plugin was Disable": in bold and red in this code
    Code (Text):
    System.out.println("Plugin was Disable");
     
  2. Offline

    Zombie_Striker

    @Pigi0204
    You can't use ChatColors with Sys.out. Instead, use getLogger and add the red chatcolor.
     
  3. Offline

    FrostDevStudios

    @Pigi0204
    if you wanted to, you can use this format for your messages
    Code:
            System.out.println("\033[0m BLACK COLOR");
            System.out.println("\033[31m RED COLOR");
            System.out.println("\033[32m GREEN COLOR");
            System.out.println("\033[33m YELLOW COLOR");
            System.out.println("\033[34m BLUE COLOR");
            System.out.println("\033[35m MAGENTA COLOR");
            System.out.println("\033[36m CYAN COLOR");
            System.out.println("\033[37m WHITE COLOR");
    but when you want to reset the color back to black. you may need to use the black color twice. I don't recommend using this though. I haven't found an alternate way to reset the colors
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Pigi0204 But you shouldn't log your own plugins anyways.
     
    RcExtract likes this.
Thread Status:
Not open for further replies.

Share This Page