手册:Player.getName

来自Minecraft基岩版开发Wiki

语法[编辑]

Player.getName(par1Object);

参数[编辑]

参数一
Object类型 实体
返回值
String类型 名字

效果[编辑]

获取玩家名字

Template:ModPE