From fa28b4acdaa7b196af322395f837a99b43af9e16 Mon Sep 17 00:00:00 2001 From: SquidDev Date: Sun, 15 May 2016 21:46:39 +0100 Subject: [PATCH] Clear all scoreboard values --- server/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/init.lua b/server/init.lua index bcda2db..040f1e8 100644 --- a/server/init.lua +++ b/server/init.lua @@ -4,6 +4,10 @@ local command = require "server.command" local network = require "shared.network"(config.clientId) local levels = require "server.loader" +commands.async.scoreboard("objectives add gamemode dummy gamemode") +commands.async.scoreboard("players", "reset", "@a") +commands.async.scoreboard("players", "set", "@a", "gamemode", "0") + local level = tonumber(... or 1) or 1 while true do local levelFiles = levels[level] or error("No such level " .. level)