Adding players to teams
#1
I am messing around with the team function, and I want to add several players to an already made team.
However, the documentation is really vague about this.

To be exact, this is the description of "AddPlayer":
Code:
Adds a player to this team. Returns true if the operation was successful.
Together with it requiring a string as parameter, you would think this is clear enough. However, I have no clue if I have to give it the player UUID, or just the player name. I'm guessing UUID since that would be the most robust (won't break if a player changes his nickname), but I'm really not sure.

Could the documentation be changed so it makes this a bit more clear?
Reply
Thanks given by:
#2
The code seems to suggest that it uses player names. Sorry - a lot of stuff is lagging behind with the UUID migration and there isn't enough manpower to fix them all.
Reply
Thanks given by: PureTryOut
#3
Don't say sorry! You're all doing this in your freetime after all Wink

For now I can work with it using player names, but I'll make an issue for it on Github. At least I now know what I have to use!
Reply
Thanks given by:
#4
I made an issue for it on Github, and put a $10 bounty on it on Bountysource.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)