首先需要在config文件夹里新建个gameStagesFakePlayerData.json文件(不是fake_players.json)。
代码格式如下:
[
{
"fakePlayerName": "[XU2FakePlayer]",
"stages": [
"stage1",
"stage2",
"stage3"
]
},
{
"fakePlayerName": "[Mekanism]",
"stages": [
"stage1",
"stage2",
"stage3"
]
},
其中假玩家的名字要用中括号括起来,如使用者:“[XU2FakePlayer]”
不知道假玩家的名字时,可以先让该假玩家使用几次有阶段限制的物品,之后在logs\debug.log日志里会看到如下日志:
[Server thread/INFO] [gamestages]: Could not find stage data for [XU2FakePlayer]. Using default data.
[Server thread/INFO] [gamestages]: Fake player DEFAULT does not have stage player. Thay do have [].
其中的“[XU2FakePlayer]”就是假玩家名。