Skip to content

Commit

Permalink
Clear all scoreboard values
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed May 15, 2016
1 parent e66c9c4 commit fa28b4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa28b4a

Please sign in to comment.