Solved ...

Discussion in 'Plugin Development' started by avent4dor, Jan 3, 2016.

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

    avent4dor

    ...
     
    Last edited: Jan 5, 2016
  2. Offline

    mythbusterma

  3. Offline

    avent4dor

    ...
     
    Last edited: Jan 5, 2016
  4. Offline

    mythbusterma

    @avent4dor

    Make sure you're not running SQL queries on the main thread.

    So is this solved then?
     
  5. Offline

    KingFaris11

    Word of advice, you should be storing UUIDs instead of Usernames (unless you already do store UUIDs in the SQL database).

    You could do this in two ways:
    1. Have a table with the columns: uuid, username, kills
    Then you could still use the same statement.
    2. Have a table with the columns: uuid, kills
    Then you'd have to use a name fetcher to get the username by UUID.

    Another note, please code to the interface not an implementation.
    Code:
    static Map<Integer, String> rang = new HashMap<Integer, String>();
    
     
  6. Offline

    avent4dor

    thank you very much already solved
     
Thread Status:
Not open for further replies.

Share This Page