Variables with user information for each user

Discussion in 'Plugin Development' started by KoPeYkA, Aug 3, 2022.

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

    KoPeYkA

    I apologize in advance: I do not know English and translated everything through Google

    In general: for example, I want to make a unique UID for each player. To do this, I need something like a variable for each player on the server, so that it can be accessed, changed, and so on. How can this be automated? I don't know how to do it at all other than manually adding variables for each player, and I don't even know where.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @KoPeYkA Players already have an UUID.
    What are you trying to achieve?
     
  3. Offline

    KoPeYkA

    Do you Americans have no such thing as "for example"? Well, let's conditionally want to make a plug-in for loans. For the player to borrow money, and how much he owes, was recorded in a variable.
     
  4. Offline

    timtower Administrator Administrator Moderator

    1. I am not American.
    2. That example was so vague that it was useless.

    Use hashmaps.
     
Thread Status:
Not open for further replies.

Share This Page