Solved Get an int as string

Discussion in 'Spigot Plugin Development' started by Stellrow, Aug 12, 2018.

  1. So im trying to get an int value to string
    Code (Text):
    int xp = plugin.getXP(uuid);
     
    to replace here
    Code (Text):
    String lp8 = lp7.replace("%xp", xp);
    How can i do that?

    Nvm found how
     
  2. Senmori

    Senmori Retired Resource Staff
    Retired Patron

    Code (Java):
    String lp8 = lp7.replace("%xp", String.valueOf(xp))
     
  3. yep thats exactly ...