Solved Store doubles, floats, or strings in Scoreboard Scores

Discussion in 'Plugin Development' started by jojodmo, Feb 12, 2014.

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

    jojodmo

    I was wondering if it is in any way possible to store a float, double, or string in a Scoreboard Score... For example:

    Code:
    String s = "52.5";
    score.setScore(s);
    I'm trying to store a decimal in a scoreboard (a KDR) and I need decimals... So, again, Is there any way to store doubles, strings, or floats in a Scoreboard Score? Thanks!
     
  2. Offline

    viper_monster

    jojodmo2010 not possible, you can only store integers.
     
  3. Offline

    RawCode

    do you ever opened API?

    if there is method - use it
    if there is no method - you can't
     
  4. Offline

    jojodmo

    The reason I'm asking is because I want to know if theres any hacky way to do it
     
  5. Offline

    bobacadodl

    You can do something like this, where the scores are on their own lines.
    [​IMG]

    Sadly, no

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  6. Offline

    jojodmo

    Darnit... I'll try to find some way to work around it... Thanks!
     
Thread Status:
Not open for further replies.

Share This Page