Testing save only to server for players.json

This commit is contained in:
Cooldude2606
2017-03-27 17:46:25 +01:00
parent 8166814226
commit 900610c1f9
2 changed files with 2 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ script.on_event(defines.events.on_player_joined_game, function(event)
drawPlayerList()
drawToolbar()
local playerStringTable = encode(game.players, "players", {"name", "admin", "online_time", "connected", "index"})
game.write_file("players.json", playerStringTable, false)
game.write_file("players.json", playerStringTable, false, 0)
if not player.admin and ticktominutes(player.online_time) < 1 then
drawFrame(player,'Readme','Rules')
end