Solved Command that set name

Discussion in 'Spigot Plugin Development' started by Carster, Feb 8, 2020.

  1. Hi i wondering how i can make a command that sets player.setDisplayName and player.setPlayerListName to arg-1 can anyone help :eek:?
     
    • Funny Funny x 1
  2. Code (Java):
    onCommand(...) {
        player.setDisplayName(args[0]);
    }
     
    • Winner Winner x 3
  3. Illegal character '...'
    'player' could not be resolved to a variable


    (Just joking btw)
     
    • Like Like x 3
  4. That gives nothing meaning
     
    • Funny Funny x 1
    • Useful Useful x 1
  5. SteelPhoenix

    Moderator

    • Agree Agree x 2
  6. Quo2ted the wrong text i would qoute this "Illegal character '...'
    'player' could not be resolved to a variable


    (Just joking btw)"
     
    • Optimistic Optimistic x 2