Solved operator + is undefined for the argument type(s) Chatcolor int

Discussion in 'Plugin Development' started by xguysprison, Nov 8, 2014.

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

    xguysprison

  2. Offline

    Fhbgsdhkfbl

    xguysprison
    You need to put a okay in a parentheses so
    + "ok");
     
  3. Offline

    xguysprison

    Fhbgsdhkfbl thx but i cant see how to fix the other one
     
  4. xguysprison
    Place an empty string inbetween the ChatColor an the Integer. Alternatively put either one of them inside these brackets ( ).
     
  5. Offline

    xguysprison


    Assist
    please give me and example or something :) still pretty new
     
  6. Offline

    Googlelover1234

    xguysprison
    so..

    Code:java
    1. ChatColor.RED + "" + whatever
     
  7. Offline

    xguysprison

  8. Offline

    Googlelover1234

    xguysprison
    I was referring to what Assist said, he told you to put an empty string between the ChatColor and int.
     
  9. Offline

    xguysprison

    thx i got it :)
     
Thread Status:
Not open for further replies.

Share This Page