Get the current player name

Nekrofage
Member
 
Posts: 35
Joined: Mon Oct 17, 2016 21:12
GitHub: Nekrofage

Get the current player name

by Nekrofage » Sun Oct 23, 2016 00:41

Hi,

I would like to know what is the good the method to get the player name that execute a chat command?

Thank you! :D
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

Re: Get the current player name

by Byakuren » Sun Oct 23, 2016 06:49

The chatcommand's callback receives the player name as its first parameter.
Every time a mod API is left undocumented, a koala dies.
 

Nekrofage
Member
 
Posts: 35
Joined: Mon Oct 17, 2016 21:12
GitHub: Nekrofage

Re: Get the current player name

by Nekrofage » Sun Oct 23, 2016 07:02

Oh, thank you Byakuren !!
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 13 guests

cron