Talk:Console/Don't Starve Together Commands/@comment-31427224-20170626210954/@comment-69.125.223.163-20170629205611

To give an item to another player, use:

c_select(AllPlayers[playernum]) c_give("backpack")

You can also use this if their username doesn't have special symbols:

c_select(UserToPlayer("playername")) c_give("backpack")

"for k, v in pairs(AllPlayers) do command end" isn't a base you should be using. This command simply repeats the command for every player on the world. (caves and surface are seperate worlds).