Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- eventAPI.addHandler("chat_command",
- function(e,msg)
- for match in string.gmatch(msg, "[^ \t]+" ) do
- table.insert( tWords, match )
- end
- -- Commands List
- if tWords[1] == "winner" then
- winner(tWords[2])
- elseif tWords[1] == "refresh" then
- refreshScreen()
- elseif tWords[1] == "addplayer" then
- addPlayer(tWords[2])
- elseif tWords[1] == "RESTART" then
- restartGame()
- elseif tWords[1] == "help" then
- help()
- elseif tWords[1] == "start" then
- scoreboard()
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement