From d519bface083ae924f1d5bf67a3935bf0ab82aa8 Mon Sep 17 00:00:00 2001 From: coding Date: Mon, 8 Jan 2018 09:12:36 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/plugins/HelloWorld.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/plugins/HelloWorld.js b/src/main/resources/plugins/HelloWorld.js index b705939..198b5fd 100644 --- a/src/main/resources/plugins/HelloWorld.js +++ b/src/main/resources/plugins/HelloWorld.js @@ -49,7 +49,7 @@ function enable() { function send(event, player){ // noinspection JSUnresolvedVariable - console.debug('玩家', player.name, "触发事件", event.class.simpleName); + console.debug('玩家', player.getName(), "触发事件", event.class.simpleName); setTimeout(function () { // noinspection JSUnresolvedVariable player.sendMessage("§a欢迎来到 §bMiaoScript §a的世界! 当前在线: " + server.players.length) @@ -65,4 +65,4 @@ module.exports = { load: load, enable: enable, disable: disable -}; \ No newline at end of file +};