1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Players with space in their username!

Discussion in 'Development' started by Hipster, Oct 19, 2017.

  1. Hipster

    Hipster Zombie

    Messages:
    214
    How do i like dispatch a command for players with space in their username? because VoteReward plugin etc. uses {username} and it doesn't detect players with space in their username...
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Use " (or \" if the string is already quoted) around the player name
     
  3. Hipster

    Hipster Zombie

    Messages:
    214
    I dont understand...
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    "user name" where the username would normally be
     
  5. Hipster

    Hipster Zombie

    Messages:
    214
    And if they don't have space, will "username" still work?
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    If the option is votereward is like this:
    command: "give {playername} juice"
    the put
    command: "give \"{playername}\" juice"
     
    jasonwynn10 and Hipster like this.
  7. Hipster

    Hipster Zombie

    Messages:
    214
    Username* and
    thanks!
     
    Last edited: Oct 20, 2017
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.