Using the string get method with player vars?

Discussion in 'Plugin Development' started by 1Achmed1, Apr 6, 2014.

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

    1Achmed1

    Please help :(
    [​IMG]
     
  2. Offline

    coasterman10

    What you actually want to do is get values by the player's name.
    Code:java
    1. public void getMoney(Player player) {
    2. getConfig().getString(player.getName());
    3. }

    I should also have you know that as of 1.7.5, you should be using the player's UUID instead of their name, but for now you can ignore that.
     
  3. Offline

    1Achmed1

    I'm behind in my developing lol :D
    Still using the 1.6.4 jar
    EDIT: I just grabbed 1.7.5 :)
     
  4. Offline

    Wizehh

    You really should learn Java.. void methods don't return anything.
     
    Gater12 likes this.
  5. Offline

    BillyGalbreath

    Relevant information: Minecraft is switching to UUIDs for storing player data, as the names are going to be changeable in the future. ;)
     
Thread Status:
Not open for further replies.

Share This Page